When your application starts, it can register database and MBO callback listeners, as well as synchronization listeners.
Callback handler and listener interfaces are provided so your application can monitor changes and notifications from Sybase Unwired Platform:
- The Sybase.Mobile.IApplicationCallback
class is used for monitoring changes to application settings, messaging
connection status, and application registration status.
- The Sybase.Persistence.ICallbackHandler interface is used to monitor notifications and changes related to the database. Register callback handlers at the package level use the RegisterCallbackHandler method in the generated database class. To register for a particular MBO, use the RegisterCallbackHandler method in the generated MBO class.
- The Sybase.Persistence.SyncStatusListener class is used for debugging and performance measures when monitoring stages of a synchronization session, and can be used in the user interface to indicate synchronization progress.