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 com.sybase.mobile.ApplicationCallback
class is used for monitoring changes to application settings, messaging
connection status, and application registration status.
- The com.sybase.persistence.CallbackHandler
interface is used to monitor notifications and changes related to the database.
To 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 com.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.