Interface MutableSubscriptionSet
On this page
io.realm.mongodb.sync
Implemented interfaces:
A mutable subscription set is available when calling SubscriptionSet.update(UpdateCallback) This is the only way to modify a SubscriptionSet . Subscription s can be either
managed or unmanaged. Unmanaged subscriptions are those created by using Subscription.create(RealmQuery) or Subscription.create(String, RealmQuery) , while managed subscriptions are the ones being returned from the subscription set.
Method Summary
Modifier and Type | Method and Description |
---|---|
public Subscription | Adds a new unmanaged subscription to the subscription set. |
public Subscription | Add a new subscription or update an existing named subscription. |
public boolean | |
public boolean | Remove a managed subscription. |
public boolean | removeAll () Remove all current managed subscriptions. |
public boolean | Remove all subscriptions with queries on a given given model class. |
public boolean | Remove all subscriptions on a given Subscription.getObjectType() . |
Inherited Methods
Method Detail
add
Adds a new unmanaged subscription to the subscription set. Parameters
Returns the newly added managed subscription. Throws
|
addOrUpdate
Add a new subscription or update an existing named subscription. It isn't possible to update an anonymous subscription. These must removed and re-inserted. Parameters
Returns the updated or inserted managed subscription. |
remove
Remove a named subscription. Parameters
Returns
|
Remove a managed subscription. Parameters
Returns
Throws
|
removeAll
public boolean removeAll () |
---|
Remove all current managed subscriptions. Returns
|
Remove all subscriptions with queries on a given given model class. Parameters
Returns
|
Remove all subscriptions on a given Subscription.getObjectType() . Parameters
Returns
|