setApplicationCallback

Sets the callback for the current application. It is optional, but recommended, to register a callback so the application can respond to changes in connection status, registration status, and application settings.

Syntax

public void setApplicationCallback(ApplicationCallback value)

Parameters

  • value – The mobile application callback handler.

Examples

  • Set the Application Callback
    // Initialize Application settings
    Application app = Application.getInstance();
    		
    // The identifier has to match the 
    // application ID deployed to the SUP server
    app.setApplicationIdentifier("SUP101");
    ApplicationCallback appCallback = new MyApplicationCallback();
    app.setApplicationCallback(appCallback);