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')

This event is fired when a setting has been set.

Parameters

Name Type Description
key
string

unset

.on('unset')

This event is fired when a setting has been unset.

Parameters

Name Type Description
key
string