UAContact
@objc
public final class UAContact : NSObject, Sendable
Airship contact. A contact is distinct from a channel and represents a “user” within Airship. Contacts may be named and have channels associated with it.
-
Identifies the contact.
Declaration
Swift
@objc public func identify(_ namedUserID: String)Parameters
namedUserIDThe named user ID.
-
Resets the contact.
Declaration
Swift
@objc public func reset() -
Can be called after the app performs a remote named user association for the channel instead of using
identifyorresetthrough the SDK. When called, the SDK will refresh the contact data. Applications should only call this method when the user login has changed.Declaration
Swift
@objc public func notifyRemoteLogin() -
Begins a tag groups editing session.
Declaration
Swift
@objc public func editTagGroups() -> UATagGroupsEditorReturn Value
A TagGroupsEditor
-
Begins an attribute editing session.
Declaration
Swift
@objc public func editAttributes() -> UAAttributesEditorReturn Value
An AttributesEditor
-
Associates a channel to the contact.
Declaration
Swift
@objc public func associateChannel(_ channelID: String, type: UAChannelType)Parameters
channelIDThe channel ID.
typeThe channel type.
-
Begins a subscription list editing session
Declaration
Swift
@objc public func editSubscriptionLists() -> UAScopedSubscriptionListEditorReturn Value
A Scoped subscription list editor
-
Fetches subscription lists.
Declaration
Swift
@objc public func fetchSubscriptionLists(completionHandler: @escaping @Sendable ([String : [String]]?, (any Error)?) -> Void)Parameters
completionHandlerThe completion handler with the subscription lists or an error.
-
Gets the current named user ID.
Declaration
Swift
@objc public func getNamedUserID(completionHandler: @escaping @Sendable (String?, (any Error)?) -> Void)Parameters
completionHandlerThe completion handler with the named user ID or an error.
View on GitHub