Package io.objectbox.sync


@ParametersAreNonnullByDefault package io.objectbox.sync
ObjectBox Sync allows to automatically synchronize local data with a sync destination (e.g. a sync server) and vice versa. This is the sync client package.

These are the typical steps to set up a sync client:

  1. Create a BoxStore as usual (using MyObjectBox).
  2. Build a SyncClient using Sync.client(boxStore), a SyncBuilder.url(java.lang.String) and at least one set of credentials with SyncBuilder.credentials(io.objectbox.sync.SyncCredentials).
  3. Optional: use the SyncBuilder instance from the last step to configure the sync client and set initial listeners.
  4. Call SyncBuilder.buildAndStart() to get an instance of SyncClient (and hold on to it). Synchronization is now active.
  5. Optional: Interact with SyncClient.