Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an alarm that executes code when the timer goes off. It requires an expiration date and a delegate to execute when the expiration date is due. When the Alarm goes off, it can be stopped or snoozed by a specific amount of time (milliseconds).

Hierarchy

  • Alarm

Implements

Index

Constructors

Properties

_stopped: boolean = false
_timeout?: number

Accessors

  • get delta(): number
  • get expired(): boolean
  • get stopped(): boolean

Methods

  • alert(): void
  • schedule(delta: number): void
  • snooze(time: number): void
  • stop(): void
  • unschedule(): void

Generated using TypeDoc