WakeupEffect

Wakeup effect processor

Constructor

new WakeupEffect()

Extends

Methods

getIntentMap() → {object}

Get the intent -> function map for current processor

Overrides:
Returns:
Type:
object

getUrlMap() → {object}

Get the url -> function map for current processor

Overrides:
Returns:
Type:
object

notifyActivation(fileNameList)

notify activation service to reload config

Parameters:
Name Type Description
fileNameList Array

file name list

getFileList() → {array}

get all wakeup sound file name

Returns:
Type:
Array

array of file name

initFromCloud()

init config from cloud

onWakeupEffectStatusChangedFromIntent(action)

process request from intent only default wakeup effect for now

Parameters:
Name Type Description
action string

'open'/'close'

refresh()

refresh the activation sound

onWakeupEffectStatusChangedFromUrl(queryObj)

process request from url

Parameters:
Name Type Description
queryObj object

object from url,

applyWakeupEffect(queryObj, isFirstLoad)

apply changes

Parameters:
Name Type Description
queryObj

query object

isFirstLoad

ready(cloudgwConfig)

ready for cloudgw

Overrides:
Parameters:
Name Type Description
cloudgwConfig object

reload()

reload

Overrides: