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

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.

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.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): SyncMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.