The callback and listener APIs allow you to optionally register a callback handler and listen for device events, application connection events, and package synchronize and replay events.
ICallbackHandler API
The ICallbackHandler interface is invoked when any database event occurs. A default callback handler is provided, which basically does nothing. You should implement a custom CallbackHandler to register important events. The callback is invoked on the thread that is processing the event. To receive callbacks for database changes, you must register a CallBackHandler with the generated database class, the entity class, or both. You can create a handler by extending the DefaultCallbackHandler class or by implementing the Sybase.Persistence.ICallbackHandler interface.
IApplicationCallback API
This callback interface is invoked by events of interest to a mobile application.
SyncStatusListener API
You can implement a synchronization status listener to track synchronization progress.