ScopedSubscriptionListEditor

abstract class ScopedSubscriptionListEditor @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(clock: Clock = Clock.DEFAULT_CLOCK)(source)

Subscription list editor. See Contact.editSubscriptionLists.

Constructors

Link copied to clipboard
protected constructor(clock: Clock = Clock.DEFAULT_CLOCK)

Functions

Link copied to clipboard
fun apply()

Apply the subscription list changes.

Link copied to clipboard
fun subscribe(subscriptionListId: String, scope: Scope): ScopedSubscriptionListEditor

Subscribe to a list.

fun subscribe(subscriptionListIds: Set<String>, scope: Scope): ScopedSubscriptionListEditor

Subscribes from a set of lists.

Link copied to clipboard
fun unsubscribe(subscriptionListId: String, scope: Scope): ScopedSubscriptionListEditor

Unsubscribe from a list.

fun unsubscribe(subscriptionListIds: Set<String>, scope: Scope): ScopedSubscriptionListEditor

Unsubscribes from a set of lists.