This callback interface is invoked by events of interest to a mobile application.
You must register an ApplicationCallback implementation to your com.sybase.mobile.Application instance to receive these callbacks.
Callback | Description |
---|---|
void onApplicationSettingsChanged(StringList nameList) | 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. Note: Some of the connection status codes are not returned
on certain client platforms due to platform operating system
limitations.
|
void onDeviceConditionChanged(int condition) | 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, StringProperties httpHeaders); | Invoked when an HTTP communication server rejects
HTTP communication with an error code.
|
void onCustomizationBundleDownloadComplete(String customizationBundleID, int errorCode, String errorMessage); | Invoked when the download of a resource bundle is complete.
|
int onPushNotification (Hashtable notification); | Invoked if a push notification arrives. You can
add logic here to handle the notification. This callback is not
called when a notification arrives when the application is not
online. An integer to indicate if the notification has been handled.
|