removeAll

abstract fun removeAll(objectType: String): Boolean

Remove all subscriptions with queries on a given Subscription.objectType.

Return

true if one or more subscriptions were removed, false if no subscriptions were removed.

Parameters

objectType

subscriptions on this object type will be removed.

Throws

if objectType is not part of the Schema for this Realm.


abstract fun <T : RealmObject> removeAll(type: KClass<T>): Boolean

Remove all subscriptions with queries on a given model class.

Return

true if one or more subscriptions were removed, false if no subscriptions were removed.

Parameters

type

subscriptions on this type will be removed.

Throws

if objectType is not part of the Schema for this Realm.


abstract fun removeAll(anonymousOnly: Boolean = false): Boolean

Remove all subscriptions in this subscription set.

Return

true if one or more subscriptions were removed, false if the subscription set was empty.

Parameters

anonymousOnly

whether or not to only remove anonymous subscriptions. If true only anonymous subscriptions will be removed. If false both anonymous and named subscriptions will be removed.