ManagerSettings

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

Table of Contents

Methods

get(key) → {any}

Get a setting.

Parameters:
Name Type Description
key string
Returns:
Type:
any

value

getKeys() → {Array.<String>}

Get all settings keys.

Returns:
Type:
Array.<String>

set(key, value)

Set a setting.

Parameters:
Name Type Description
key string
value any

unset(key)

Unset (delete) a setting.

Parameters:
Name Type Description
key string

Events

.on('set')

Fires when a setting has been set.

Parameters:
Name Type Description
key String

.on('unset')

Fires when a setting has been unset.

Parameters:
Name Type Description
key String