-
Notifications
You must be signed in to change notification settings - Fork 6
getActivityExtras
Mark Taylor edited this page Mar 31, 2014
·
2 revisions
getActivityExtras(successCallback, failureCallback)
Allows you to retrieve any user defined "extra" data provided as a result of the current Activity being as a result of an alarm.
- 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).
On success a JSONObject is provided that is made up of the extras object provided to the [addAlarm] (addAlarm)/ [updateAlarm] (updateAlarm) methods.
On failure, the provided JSONObject will contain:
- ErrorMessage - string - A textual description on why the function failed.
- [addAlarm] (addAlarm)
- [updateAlarm] (updateAlarm)