AppPreference

Since: 25.6

Static Methods

getValue

Get preference value in native string form

Since: 25.6

Returns: string

Parameters

Name
Type
Description
preferenceKey
Constants.PreferenceKey
App preference key to get

setValue

Set backend preference using one of the available property keys

Since: 25.6

Returns: boolean

Parameters

Name
Type
Description
key
Constants.PreferenceKey
App preference key to set
value
boolean or string or number
Value to set for the preference key
persistenceFlag
Constants.PropertyType
Indicates whether the preference should be persisted or not