Show / Hide Table of Contents

    Enum ClientResyncMode

    Enum describing what should happen in case of a Client Resync.

    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    public enum ClientResyncMode : byte
    Remarks

    A Client Resync is triggered if the device and server cannot agree on a common shared history for the Realm file, thus making it impossible for the device to upload or receive any changes. This can happen if the server is rolled back or restored from backup.
    IMPORTANT: Just having the device offline will not trigger a Client Resync.

    Fields

    Name Description
    DiscardLocalRealm

    The local Realm will be discarded and replaced with the server side Realm. All local changes will be lost.
    This mode is not yet supported by Query-based Realms.

    Manual

    A manual Client Resync is also known as a Client Reset.
    A ClientResetException will be sent to Error, triggering a Client Reset. Doing this provides a handle to both the old and new Realm file, enabling full control over which changes to move, if any.
    This is the only supported mode for Query-based Realms.

    RecoverLocalRealm

    Realm will compare the local Realm with the Realm on the server and automatically transfer any changes from the local Realm that makes sense to the Realm provided by the server.
    This is the default mode for fully synchronized Realms. It is not yet supported by Query-based Realms.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Realm
    Generated by DocFX