ScopedSubscriptionListEditor

@objc(UAScopedSubscriptionListEditor)
public class ScopedSubscriptionListEditor : NSObject

Scoped subscription list editor.

  • Subscribes to a list.

    Declaration

    Swift

    @objc(subscribe:scope:)
    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

    @objc(unsubscribe:scope:)
    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, falseto unsubscribe

  • Applies subscription list changes.

    Declaration

    Swift

    @objc
    public func apply()