class NeedsPreferenceManager
NeedsPreferenceManager(context: Context) |
fun getInstance(): NeedsPreferenceManager
get a singleton instance of the NeedsPreferenceManager. |
|
fun getTimes(name: String): Int
gets show-up times from the preference. |
|
fun putIncrementedTimes(name: String): Unit
puts a incremented show-up times to the preference. |
|
fun putTimes(name: String, times: Int): Unit
puts show-up times to the preference. |
|
fun shouldShowUP(name: String, times: Int): Boolean
should show or not the popup. |
lateinit var needsPreferenceManager: NeedsPreferenceManager |
|
lateinit var sharedPreferenceManager: SharedPreferences |