InitialSubscriptionsCallback

fun interface InitialSubscriptionsCallback

Callback used to populate the initial SubscriptionSet when opening a Realm.

This is configured through SyncConfiguration.Builder.initialSubscriptions.

Functions

write
Link copied to clipboard
abstract fun MutableSubscriptionSet.write(realm: <ERROR CLASS>)

Closure for adding or modifying the initial SubscriptionSet, with the MutableSubscriptionSet as the receiver. This mirrors the API when using SubscriptionSet.update and allows for the following pattern: