-
Notifications
You must be signed in to change notification settings - Fork 6
getDefaultClass
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).
- 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, 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.
- [addAlarm] (addAlarm)
- [cancelAlarm] (cancelAlarm)