Namespace: Alarm

Alarm

Manage alarms from the chrome.alarms API

Source:
See:

Members


<private, static, constant> Alarms :Object

Alarms triggered by chrome.alarms

Type:
  • Object
Properties:
Name Type Description
ACTIVATE string

screen saver is active

DEACTIVATE string

screen saver is not activate

UPDATE_PHOTOS string

photo sources should be updated

BADGE_TEXT string

icon's Badge text should be set

Source:

Methods


<private, static> _onAlarm(alarm)

Event: Fired when an alarm has elapsed.

Parameters:
Name Type Description
alarm Object

details on alarm

Source:
See:

<private, static> _onLoad()

Event: called when document and resources are loaded

Source:

<private, static> _setActiveState()

Set state when the screensaver is in the active time range

Source:

<private, static> _setBadgeText()

Set the Badge text on the icon

Source:

<private, static> _setInactiveState()

Set state when the screensaver is in the inactive time range

Source:

<static> isActive() → {boolean}

Determine if the screen saver can be displayed

Source:
Returns:

true, if can display

Type
boolean

<static> updateBadgeText()

Set the icon badge text

Source:

<static> updateRepeatingAlarms()

Set the repeating alarms states

Source: