setValueToUserSetting
Sets a user setting. User settings are stored on the device's persistent storage and are not removed even after the application is fully closed.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"async" | Boolean | Specifies whether the action should perform asynchronously. | null |
"key" (required) | String | The name of the user setting. | null |
"value" (required) | String | The value of the user setting. | null |
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type name of the action. | null |
Examples
Example 1: Create a user setting with assigned static value.
Goal: Create a user setting named "favoriteSeason" and assing it the value "summer"
Key
and value
have to be assigned within the params
object of the action.
{
"type": "setValueToUserSetting",
"params": {
"key": "favoriteSeason",
"value": "summer"
}
}
Result:
The user setting "favoriteSeason" has been set with the value "summer"