Skip to main content
Version: v1.0

hmApp.alarmCancel(alarmId)

Cancel timed wake-up

Type

(alarmId: number) => void

Parameter

alarmId

DescriptionType
Handle to return when creating a wake-up objectnumber

Code example

const alarm = hmApp.alarmNew({
file: 'pages/js_widget_sample',
appid: 1000001,
delay: 10
})

//Cancel wake-up

hmApp.alarmCancel(alarm)