Interface Sync.SyncListener
-
- Enclosing class:
- Sync
public static interface Sync.SyncListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConflict(java.util.List<? extends ConflictItem> syncConflicts)Invoked when conflict occurs while synchronizing the user data.voidonSyncFailed(SyncError error)Invoked when an error occurs during synchronization.voidonSyncFinished(java.util.Date lastCheckedTimestamp)Invoked when the synchronization completes.voidonUserDataChanged()invoked when synchronized data has changed.
-
-
-
Method Detail
-
onUserDataChanged
void onUserDataChanged()
invoked when synchronized data has changed.
-
onConflict
void onConflict(java.util.List<? extends ConflictItem> syncConflicts)
Invoked when conflict occurs while synchronizing the user data.- Parameters:
syncConflicts-ConflictItem
-
onSyncFinished
void onSyncFinished(java.util.Date lastCheckedTimestamp)
Invoked when the synchronization completes.
The timestamp is based on ISO 8601. The format is YYYY-MM-DD where YYYY is the year, MM is the month and DD is the day.- Parameters:
lastCheckedTimestamp- The date and time of the last synchronization.
-
onSyncFailed
void onSyncFailed(SyncError error)
Invoked when an error occurs during synchronization.- Parameters:
error- The error describing the failure.
-
-