Abstract
If state
is SubscriptionSetState.Error, this will be a string representing
why the SubscriptionSet is in an error state. It will be null
if there is no error.
A string representing the error, or null
if there is no error.
Whether there are no subscriptions in the set.
true
if there are no subscriptions in the set, false
otherwise.
The number of subscriptions in the set.
The state of the SubscriptionSet.
The version of the SubscriptionSet. This is incremented every time a SubscriptionSet.update is applied.
The version of the SubscriptionSet.
Makes the subscription set iterable.
Iterable of each value in the set.
for (const subscription of subscriptions) {
// ...
}
Find a subscription by name.
The name to search for.
The named subscription, or null
if the subscription is not found.
Find a subscription by query. Will match both named and unnamed subscriptions.
The query to search for, represented as a Results instance,
e.g. Realm.objects("Cat").filtered("age > 10")
.
The subscription with the specified query, or null
if the subscription is not found.
Generated using TypeDoc
Class representing the common functionality for the SubscriptionSet and MutableSubscriptionSet classes.
SubscriptionSets can only be modified inside a SubscriptionSet.update callback.
The SubscriptionSet is an iterable; thus, the contained Subscriptions can be accessed in
for-of
loops or spread into anArray
for access to the ECMAScript Array API, e.g.[...realm.subscriptions][0]
.