Package io.objectbox.sync.listener
Interface SyncChangeListener
-
- All Known Subinterfaces:
SyncListener
- All Known Implementing Classes:
AbstractSyncListener
@Experimental public interface SyncChangeListenerNotifies of fine granular changes on the object level happening during sync. Register your listener usingSyncBuilder.changesListener(SyncChangesListener). Note that enabling fine granular notification can slightly reduce performance.See also
SyncListenerfor the general sync listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonSyncChanges(SyncChange[] syncChanges)Called each time when data from sync was applied locally.
-
-
-
Method Detail
-
onSyncChanges
void onSyncChanges(SyncChange[] syncChanges)
Called each time when data from sync was applied locally.- Parameters:
syncChanges- This contains the entity type (schema) ID, the removed IDs and the put IDs for that entity.
-
-