BaseSubscriptionSet

Base interface for shared functionality between SubscriptionSet and MutableSubscriptionSet.

Inheritors

Properties

Link copied to clipboard
abstract val errorMessage: String?

If state returns SubscriptionSetState.ERROR, this method will return the reason. Errors can be fixed by modifying the subscription accordingly and then call SubscriptionSet.waitForSynchronization.

Link copied to clipboard
abstract val size: Int

The number of subscriptions currently in this subscription set.

Link copied to clipboard

The current state of the SubscriptionSet. See SubscriptionSetState for more details about each state.

Functions

Link copied to clipboard
abstract fun findByName(name: String): Subscription?

Find the subscription with a given name.

Link copied to clipboard
abstract fun <T : RealmObject> findByQuery(query: RealmQuery<T>): Subscription?

Find the first subscription that contains the given query. It is possible for multiple named subscriptions to contain the same query.

Link copied to clipboard
abstract operator fun iterator(): Iterator<Subscription>