-
Notifications
You must be signed in to change notification settings - Fork 6
addAlarm
Mark Taylor edited this page Mar 10, 2014
·
7 revisions
addAlarm(what, when, wakeScreen, successCallback, failureCallback)
- what - String - the fully qualified classname of the Android Activity to be started on the alarm. Note that the helper function [getDefaultClass] (getDefaultClass) can be used to return the current activity.
- when - Date object - JavaScript Date object of when the alarm should be triggered. This should be in local timezone, the plugin will automatically convert and store as UTC.
- wakeScreen - IGNORE - TO BE AMENDED
- successCallback - function - The callback which will be called if the method is successful. The callback is passed the output (see below).
- failureCallback - function - The callback which will be called if the method encounters an error. The callback is passed the output (see below).
TODO
- [getDefaultClass] (getDefaultClass)