DittoSync

class DittoSync

Provides access to sync related functionality of Ditto.

Since

4.5.0

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun registerSubscription(query: String, arguments: Map<String, Any>? = null): DittoSyncSubscription

Installs and returns a sync subscription for a query, configuring Ditto to receive updates from other peers for documents matching that query. The given query must be a SELECT query, otherwise a DittoError.StoreError with DittoError.StoreErrorReason.QueryNotSupported is thrown.

Properties

Link copied to clipboard
var subscriptions: Set<DittoSyncSubscription>

All currently active sync subscriptions.