All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.objectbox.sync.package-info Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2020 ObjectBox Ltd. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * 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 setup a sync client: *

    *
  1. Create a BoxStore as usual (using MyObjectBox).
  2. *
  3. Get a {@link io.objectbox.sync.SyncBuilder} using * {@link io.objectbox.sync.Sync#client(io.objectbox.BoxStore, java.lang.String, io.objectbox.sync.SyncCredentials) Sync.client(boxStore, url, credentials)}. * Here you need to pass the {@link io.objectbox.BoxStore BoxStore}, along with an URL to the sync destination (server), * and credentials. For demo set ups, you could start with {@link io.objectbox.sync.SyncCredentials#none()} * credentials.
  4. *
  5. Optional: use the {@link io.objectbox.sync.SyncBuilder} instance from the last step to configure the sync * client and set initial listeners.
  6. *
  7. Call {@link io.objectbox.sync.SyncBuilder#build()} to get an instance of * {@link io.objectbox.sync.SyncClient} (and hold on to it). Synchronization is now active.
  8. *
  9. Optional: Interact with {@link io.objectbox.sync.SyncClient}.
  10. *
*/ @ParametersAreNonnullByDefault package io.objectbox.sync; import javax.annotation.ParametersAreNonnullByDefault;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy