Skip to content

settings

Keys and defaults come from manifest.settings. Views receive get only. Ordinary actions can also set and reset values. File hooks receive a resolved settings snapshot instead of this interface.

Usage guide: services. API index.

Signatures, parameters and return types are generated from the SDK. Optional members are not available in every host and context.

Source

Supported hosts: Lite Mobile

Read a declared setting.

get(key: string): Promise<SettingValue>;
Parameter Type Required
key string Yes

Returns: Promise<SettingValue>.

Supported hosts: Lite Mobile

Set a declared setting from an ordinary action context.

set(key: string, value: SettingValue): Promise<void>;
Parameter Type Required
key string Yes
value SettingValue Yes

Returns: Promise<void>.

Supported hosts: Lite Mobile

Reset a setting to its declared default.

reset(key: string): Promise<void>;
Parameter Type Required
key string Yes

Returns: Promise<void>.

Related types: SettingValue.