ScopedSubscriptionListEditor
public class ScopedSubscriptionListEditor
Scoped subscription list editor.
-
Subscribes to a list.
Declaration
Swift
public func subscribe(_ subscriptionListID: String, scope: ChannelScope)
Parameters
subscriptionListID
The subscription list identifier.
scope
Defines the channel types that the change applies to.
-
Unsubscribes from a list.
Declaration
Swift
public func unsubscribe(_ subscriptionListID: String, scope: ChannelScope)
Parameters
subscriptionListID
The subscription list identifier.
scope
Defines the channel types that the change applies to.
-
Internal helper that uses a boolean flag to indicate whether to subscribe or unsubscribe.
Declaration
Swift
public func mutate( _ subscriptionListID: String, scopes: [ChannelScope], subscribe: Bool )
Parameters
subscriptionListID
The subscription list identifier.
scopes
The scopes.
subscribe
true
to subscribe,false
to unsubscribe -
Applies subscription list changes.
Declaration
Swift
public func apply()