ManagerSettings

You can access this manager through the Homey instance as this.homey.settings

Methods

get

get(key): any

Get a setting.

Parameters

Name Type Description
key
string

Returns

value

any

getKeys

getKeys(): Array.<String>

Get all settings keys.

Returns

Array.<String>

set

set(key, value)

Set a setting.

Parameters

Name Type Description
key
string
value
any

unset

unset(key)

Unset (delete) a setting.

Parameters

Name Type Description
key
string

Events

set

.on('set')

Fires when a setting has been set.

Parameters

Name Type Description
key
String

unset

.on('unset')

Fires when a setting has been unset.

Parameters

Name Type Description
key
String