core member

Direct reference to the logon core object used by the Logon plugin.

This is needed to perform more complex operations that are not generally needed by applications.


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.


         

Syntax

<static> core

Example

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);

Source

LogonController.js, line 1554.