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

+ (void)setApplicationCallback:(SUPApplicationCallback*)value;

Parameters

  • value – The mobile application callback handler.

Examples

  • Set the Application Callback
    SUPApplication* app = [SUPApplication getInstance];
    @try {
      [app setApplicationIdentifier: @"appname"]; ( same as in SCC )
      [app setApplicationCallback:self];
      ...
    }
    @catch (SUPPersistenceException * pe) {
      NSLog(@"%@: %@", [pe name],[pe message]);
    }