CustomConfig

handle all custom-config

Constructor

new CustomConfig()

Methods

intercept(msg)

intercept the configuration message for dnd-model etc

Parameters:
Name Type Description
msg string | object

appendUrl(pathname, params, stringify) → {string}

construct the skill url

Parameters:
Name Type Description
pathname string

skill path

params object

skill prarms

stringify boolean

is the params should be stringify

Returns:
Type:
string

url for custom-config skill

onCustomConfig(message)

Handling the configs from RokidApp, includes activation words, night mode, and etc..

Parameters:
Name Type Description
message string

onLoadCustomConfig(config)

first load custom config

Parameters:
Name Type Description
config string

custom config from cloud

runtimeDidResumeFromSleep()

Interception system resume from sleep