Skip to content
Mark Taylor edited this page Mar 31, 2014 · 3 revisions

getDefaultClass(successCallback, failureCallback)

Helper method for getting the current activity. Useful for [addAlarm] (addAlarm)/ [cancelAlarm] (cancelAlarm).

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, the provided JSONObject will contain:

  • Message - string - The fully qualified class of the current CordovaActivity.

On failure, the provided JSONObject will contain:

  • ErrorMessage - string - A textual description on why the function failed.

Also see

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