Package io.objectbox.sync.listener
Interface SyncChangeListener
- All Known Subinterfaces:
SyncListener
- All Known Implementing Classes:
AbstractSyncListener
Notifies of fine granular changes on the object level happening during sync.
Register your listener using
SyncBuilder.changesListener(SyncChangesListener)
.
Note that enabling fine granular notification can slightly reduce performance.
See also SyncListener
for the general sync listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSyncChanges
(SyncChange[] syncChanges) Called each time when data from sync was applied locally.
-
Method Details
-
onSyncChanges
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.
-