Module alarms

Index

Variables

Interfaces

Functions

Variables

onAlarm: AlarmEvent

Functions

clear(name?: string)

Parameters

  • name?: string optional

clearAll()

create(alarmInfo: AlarmCreateInfo)

Parameters

create(name: string, alarmInfo: AlarmCreateInfo)

Parameters

get(callback: (alarm: chrome.alarms.Alarm) => void)

Parameters

  • callback: (alarm: chrome.alarms.Alarm) => void

get(name: string, callback: (alarm: chrome.alarms.Alarm) => void)

Parameters

  • name: string
  • callback: (alarm: chrome.alarms.Alarm) => void

getAll(callback: (alarms: chrome.alarms.Alarm[]) => void)

Parameters

  • callback: (alarms: chrome.alarms.Alarm[]) => void