Preferences
fun Preferences(sharedPreferences: SharedPreferences, builderAction: PreferencesBuilder.() -> Unit = {}): Preferences
Creates an instance of Preferences encoding and decoding data from the given SharedPreferences and adjusted with builderAction.
Parameters
sharedPreferences
the storage to encode data into and decode data from
builderAction
builder to change the behavior of the Preferences format
fun Preferences(preferences: Preferences, builderAction: PreferencesBuilder.() -> Unit = {}): Preferences
Creates an instance of Preferences using the configuration of the previous created Preferences and adjusted with builderAction.
Parameters
preferences
format to copy the configuration from
builderAction
builder to change the behavior of the Preferences format