needs / com.skydoves.needs / NeedsPreferenceManager

NeedsPreferenceManager

class NeedsPreferenceManager

Constructors

<init>

NeedsPreferenceManager(context: Context)

Functions

getInstance

fun getInstance(): NeedsPreferenceManager

get a singleton instance of the NeedsPreferenceManager.

getTimes

fun getTimes(name: String): Int

gets show-up times from the preference.

putIncrementedTimes

fun putIncrementedTimes(name: String): Unit

puts a incremented show-up times to the preference.

putTimes

fun putTimes(name: String, times: Int): Unit

puts show-up times to the preference.

shouldShowUP

fun shouldShowUP(name: String, times: Int): Boolean

should show or not the popup.

Companion Object Properties

needsPreferenceManager

lateinit var needsPreferenceManager: NeedsPreferenceManager

sharedPreferenceManager

lateinit var sharedPreferenceManager: SharedPreferences