Package-level declarations
Types
Representation possibilities for Double, because SharedPreferences don't have getDouble
or putDouble
methods.
Serializes and deserializes class properties into SharedPreferences consisting of string keys and primitive type values.
Builder of the Preferences instance provided by Preferences(sharedPreferences) { ... }
factory function.
Functions
Encodes changes to the delegated property into the SharedPreferences and decodes the current value from them.
Decodes and deserializes from the SharedPreferences at the specified tag to the value of type T using deserializer retrieved from the reified type parameter.
Decodes and deserializes from the SharedPreferences at the specified tag to the value of type T using deserializer retrieved from the reified type parameter.
Serializes and encodes the given value into the SharedPreferences at the specified tag using serializer retrieved from the reified type parameter.
Creates an instance of Preferences encoding and decoding data from the given SharedPreferences and adjusted with builderAction.
Creates an instance of Preferences using the configuration of the previous created Preferences and adjusted with builderAction.