Skip to main content

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

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"key" (required)StringThe name of the user setting.null
"value" (required)StringThe value of the user setting.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType 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"