AirshipBaseChannelProtocol

@objc(UAChannelProtocol)
public protocol AirshipBaseChannelProtocol : Sendable

Airship Channel protocol.

  • The Channel ID.

    Declaration

    Swift

    var identifier: String? { get }
  • Device tags

    Declaration

    Swift

    @objc
    var tags: [String] { get set }
  • Allows setting tags from the device. Tags can be set from either the server or the device, but not both (without synchronizing the data), so use this flag to explicitly enable or disable the device-side flags.

    Set this to false to prevent the device from sending any tag information to the server when using server-side tagging. Defaults to true.

    Declaration

    Swift

    @objc
    var isChannelTagRegistrationEnabled: Bool { get set }
  • Edits channel tags.

    Declaration

    Swift

    @objc
    func editTags() -> TagEditor

    Return Value

    Tag editor.

  • Edits channel tags.

    Declaration

    Swift

    @objc
    func editTags(_ editorBlock: (TagEditor) -> Void)

    Parameters

    editorBlock

    The editor block with the editor. The editor will apply will be called after the block is executed.

  • Edits channel tags groups.

    Declaration

    Swift

    @objc
    func editTagGroups() -> TagGroupsEditor

    Return Value

    Tag group editor.

  • Edits channel tag groups tags.

    Declaration

    Swift

    @objc
    func editTagGroups(_ editorBlock: (TagGroupsEditor) -> Void)

    Parameters

    editorBlock

    The editor block with the editor. The editor will apply will be called after the block is executed.

  • Edits channel subscription lists.

    Declaration

    Swift

    @objc
    func editSubscriptionLists() -> SubscriptionListEditor

    Return Value

    Subscription list editor.

  • Edits channel subscription lists.

    Declaration

    Swift

    @objc
    func editSubscriptionLists(_ editorBlock: (SubscriptionListEditor) -> Void)

    Parameters

    editorBlock

    The editor block with the editor. The editor will apply will be called after the block is executed.

  • Fetches current subscription lists.

    Declaration

    Swift

    @objc
    func fetchSubscriptionLists() async throws -> [String]

    Return Value

    The subscription lists

  • Edits channel attributes.

    Declaration

    Swift

    @objc
    func editAttributes() -> AttributesEditor

    Return Value

    Attribute editor.

  • Edits channel attributes.

    Declaration

    Swift

    @objc
    func editAttributes(_ editorBlock: (AttributesEditor) -> Void)

    Parameters

    editorBlock

    The editor block with the editor. The editor will apply will be called after the block is executed.

  • Enables channel creation if channelCreationDelayEnabled was set to YES in the config.

    Declaration

    Swift

    @objc
    func enableChannelCreation()