DevicePreferences
Wisej.Hybrid.DevicePreferences
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid (3.5.0.0)
Manages device preferences, allowing retrieval and storage of user preferences.
public class DevicePreferences
Access this class through the Device singleton.
Constructors
DevicePreferences()

Initializes a new instance of DevicePreferences.
Methods
Clear(sharedName)

Clears all preferences.
Parameter
Type
Description
ContainsKey(key, sharedName)

Checks if the preferences contain a given key.
Returns: Boolean. true if the preference contains the key; otherwise, false.
Get(key, defaultValue, sharedName)

Retrieves the value of a preference specified by the key.
Returns: Object. The value of the preference if it exists; otherwise, the default value.
Remove(key, sharedName)

Removes a preference specified by the key.
Set(key, value, sharedName)

Sets the value of a boolean preference specified by the key.
Set(key, value, sharedName)

Sets the value of a string preference specified by the key.
Last updated