public interface SyncListener
Modifier and Type | Method and Description |
---|---|
void |
onSyncFailure(ApiError error)
Called when synchronisation has failed.
|
void |
onSyncSuccess(SyncResult result)
Called when synchronisation has been successful.
|
void onSyncSuccess(SyncResult result)
The returned SyncResult
lists the triggers which have been added and/or removed
from TapPoint since the last synchronisation.
result
- lists any triggers that were added and/or removed. An empty result will be returned if no triggers
have changed on TapPoint.void onSyncFailure(ApiError error)
Synchronisation can fail for several reasons, for example the application may not have successfully authenticated
with TapPoint or a network connection may not be available. Your application should inspect the ApiError
object that is passed to the method and decide whether it is possible to
recover.
error
- provides additional details about the failure.