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

    namedUserID

    The 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 identify or reset through 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() -> UATagGroupsEditor?

    Return Value

    A TagGroupsEditor

  • Begins an attribute editing session.

    Declaration

    Swift

    @objc
    public func editAttributes() -> UAAttributesEditor?

    Return Value

    An AttributesEditor

  • Associates a channel to the contact.

    Declaration

    Swift

    @objc
    public func associateChannel(_ channelID: String, type: UAChannelType)

    Parameters

    channelID

    The channel ID.

    type

    The channel type.

  • Begins a subscription list editing session

    Declaration

    Swift

    @objc
    public func editSubscriptionLists() -> UAScopedSubscriptionListEditor

    Return Value

    A Scoped subscription list editor