Interface Sync.SyncListener

  • Enclosing class:
    Sync

    public static interface Sync.SyncListener
    • 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.