Direct reference to the logon core object used by the Logon plugin.
There are several functions that can be accessed on the core object:
getState(successCallback,errorCallback) returns the state object of the application to the success callback in the form of a JavaScript object.
getContext(successCallback,errorCallback) returns the context object of the application to the success callback in the form of a JavaScript object.
deleteRegistration(successCallback,errorCallback) deletes the application's registration from the SAP Mobile Platform server and removes
application data on device.
<static> core
var successCallback = function(result){
alert("Result: " + JSON.stringify(result));
}
var errorCallback = function(errorInfo){
alert("Error: " + JSON.stringify(errorInfo));
}
sap.Logon.core.getState(successCallback,errorCallback);
sap.Logon.core.getContext(successCallback,errorCallback);
sap.Logon.core.deleteRegistration(successCallback,errorCallback);