RxSharedPreferences
class RxSharedPreferences
Preference factory class to provide Preference objects used reactive frameworks
Parameters
sharedPreferences
The preferences that back this factory
Functions
Link copied to clipboard
Creates a Boolean preference for the key with a default of defaultValue
Link copied to clipboard
Creates a Float preference for the key with a default of defaultValue
Link copied to clipboard
Creates a Int preference for the key with a default of defaultValue
Link copied to clipboard
Creates a Long preference for the key with a default of defaultValue
Link copied to clipboard
Creates a T preference for the key using the converter, and with a default of defaultValue.
Link copied to clipboard
fun <T : Any> getObjectNonNull(key: String?, defaultValue: T, converter: Preference.Converter<T>): Preference<T>
Link copied to clipboard
Creates a String preference for the key with a default of defaultValue
Link copied to clipboard
Creates a string Set preference for the key with a default of defaultValue