SyncMode

enum SyncMode : Enum<SyncMode>

This enum determines how Realm sync data with the server.

The server must be configured for the selected way, otherwise an error will be reported to SyncConfiguration.errorHandler when the Realm connects to the server for the first time.

Entries

FLEXIBLE
Link copied to clipboard

Flexible Sync. Data is selected for synchronization based on one or more queries which are stored in a SubscriptionSet. All server objects that match one or more queries are then synchronized to the device.

PARTITION_BASED
Link copied to clipboard

Partition-based Sync. Data is selected for synchronization based on a partition key, which is a property that must be set on all objects. Server objects that match a given partition value are then synchronized to the device.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int