#chrome.alarms
Alarms of the extension, kept in state.txt (src/page/ext_api.odin). A delay or a period below extensions.alarms.min_period_ms is raised to it.
Gate: permission alarms; contexts: Background, Popup, Tab. Source: api/ext_alarms.widl.
#Methods and properties
| Member | Result | Status | Gate | |
create(optional string name, optional AlarmCreateInfo alarmInfo) | void | host | | The same name replaces the alarm before it. |
get(optional string name) | Alarm | host | | |
getAll() | Alarm[] | host | | |
clear(optional string name) | bool | host | | |
clearAll() | bool | host | | |
#Events
| Event | Listener's parameters | Gate | |
onAlarm | Alarm alarm | | |
#Types
#Alarm
| Property | Type | |
name | string | |
scheduledTime | f64 | |
periodInMinutes (optional) | f64 | |
#AlarmCreateInfo
| Property | Type | |
when (optional) | f64 | Milliseconds since the epoch. |
delayInMinutes (optional) | f64 | |
periodInMinutes (optional) | f64 | |
Edit this page on GitHub