Skip to content
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.

Parameters

  • 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).

Output

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.

Also see

  • [addAlarm] (addAlarm)
  • [updateAlarm] (updateAlarm)
Clone this wiki locally