IApplicationCallback API

This callback interface is invoked by events of interest to a mobile application.

You must register an IApplicationCallback implementation to your Sybase.Mobile.Application instance to receive these callbacks.

Callbacks in the IApplicationCallback Interface
Callback Description
void OnApplicationSettingsChanged(Sybase.Collections.StringList names) Invoked when one or more application settings have been changed by the server administration.
void OnConnectionStatusChanged(int connectionStatus, int errorCode, string errorMessage) Invoked when the connection status changes. The possible connection status values are defined in the ConnectionStatus class.
void OnDeviceConditionChanged(int deviceCondition) Invoked when a condition is detected on the mobile device that may be of interest to the application or the application user. The possible device condition values are defined in the DeviceCondition class.
void OnRegistrationStatusChanged(int registrationStatus, int errorCode, string errorMessage) Invoked when the registration status changes. The possible registration status values are defined in the RegistrationStatus class.
void OnHttpCommunicationError(int errorCode, string errorMessage, Sybase.Collections.StringProperties responseHeaders); Invoked when an HTTP communication server rejects HTTP communication with an error code.
  • errorCode – Error code returned by the HTTP server. For example: code 401 for authentication failure, code 403 for authorization failure.
  • errorMessage – Error message returned by the HTTP server.
  • responseHeaders – Response headers returned by the HTTP server.