AirshipChannelProtocol
public protocol AirshipChannelProtocol : AnyObject, Sendable
Airship Channel protocol.
-
The Channel ID.
Declaration
Swift
var identifier: String? { get }
-
Device tags
Declaration
Swift
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 totrue
.Declaration
Swift
var isChannelTagRegistrationEnabled: Bool { get set }
-
Edits channel tags.
Declaration
Swift
func editTags() -> TagEditor
Return Value
Tag editor.
-
Edits channel tags.
Declaration
Swift
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
func editTagGroups() -> TagGroupsEditor
Return Value
Tag group editor.
-
Edits channel tag groups tags.
Declaration
Swift
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
func editSubscriptionLists() -> SubscriptionListEditor
Return Value
Subscription list editor.
-
Edits channel subscription lists.
Declaration
Swift
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. -
fetchSubscriptionLists()
AsynchronousFetches current subscription lists.
Declaration
Swift
func fetchSubscriptionLists() async throws -> [String]
Return Value
The subscription lists
-
Edits channel attributes.
Declaration
Swift
func editAttributes() -> AttributesEditor
Return Value
Attribute editor.
-
Edits channel attributes.
Declaration
Swift
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
func enableChannelCreation()
-
Async stream of channel ID updates.
Declaration
Swift
var identifierUpdates: AsyncStream<String> { get }
-
Publishes edits made to the subscription lists through the SDK
Declaration
Swift
var subscriptionListEdits: AnyPublisher<SubscriptionListEdit, Never> { get }