Preferences Builder
class PreferencesBuilder
Builder of the Preferences instance provided by Preferences(sharedPreferences) { ... }
factory function.
Properties
Link copied to clipboard
Specifies how Double fields will be encoded. DoubleRepresentation.LONG_BITS by default
Link copied to clipboard
Specifies whether Sets of String, Char and Enum will be encoded with putStringSet or not.
Link copied to clipboard
Module with contextual and polymorphic serializers to be used in the resulting Preferences instance.
Link copied to clipboard
Specifies the SharedPreferences where everything will be encoded to and decoded from.
Link copied to clipboard
Specifies the names of the SerialDescriptor which are used to detect Set
Link copied to clipboard
Specifies the usage of synchronize blocks over PreferencesBuilder.sharedPreferences while serialization.