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(): Boolean

Remove all subscriptions in this subscription set.

Return

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