DevicePreferences
Wisej.Hybrid.DevicePreferences
Last updated
Wisej.Hybrid.DevicePreferences
Last updated
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Manages device preferences, allowing retrieval and storage of user preferences.
Access this class through the singleton.
Initializes a new instance of .
Clears all preferences.
An optional name for a shared preferences space.
Checks if the preferences contain a given key.
key
The key to check within the preferences.
An optional name for a shared preferences space.
Retrieves the value of a preference specified by the key.
key
The key for the desired preference.
defaultValue
The default value to return if the preference does not exist.
An optional name for a shared preferences space.
Removes a preference specified by the key.
key
The key for the preference to remove.
An optional name for a shared preferences space.
Sets the value of a boolean preference specified by the key.
key
The key for the desired preference.
value
The value to set for the preference.
An optional name for a shared preferences space.
Sets the value of a string preference specified by the key.
key
The key for the desired preference.
value
The value to set for the preference.
An optional name for a shared preferences space.
sharedName
sharedName
Returns: . true if the preference contains the key; otherwise, false.
sharedName
Returns: . The value of the preference if it exists; otherwise, the default value.
sharedName
sharedName
sharedName