AssociatedIdentifiers

@objc(UAAssociatedIdentifiers)
public class AssociatedIdentifiers : NSObject

Defines analytics identifiers to be associated with the device.

  • Maximum number of associated IDs that can be set.

    Declaration

    Swift

    @objc
    public static let maxCount: Int
  • Character limit for associated IDs or keys.

    Declaration

    Swift

    @objc
    public static let maxCharacterCount: Int
  • The advertising ID.

    Declaration

    Swift

    @objc
    public var advertisingID: String? { get set }
  • The application’s vendor ID.

    Declaration

    Swift

    @objc
    public var vendorID: String? { get set }
  • Indicates whether the user has limited ad tracking.

    Declaration

    Swift

    @objc
    public var advertisingTrackingEnabled: Bool { get set }
  • A map of all the associated identifiers.

    Declaration

    Swift

    @objc
    public var allIDs: [String : String] { get }
  • Factory method to create an empty identifiers object.

    Declaration

    Swift

    @objc
    public class func identifiers() -> AssociatedIdentifiers

    Return Value

    The created associated identifiers.

  • Factory method to create an associated identifiers instance with a dictionary of custom identifiers (containing strings only).

    Declaration

    Swift

    @objc(identifiersWithDictionary:)
    public class func identifiers(identifiers: [String: String]?)
        -> AssociatedIdentifiers

    Return Value

    The created associated identifiers.

  • Sets an identifier mapping.

    Declaration

    Swift

    @objc(setIdentifier:forKey:)
    public func set(identifier: String?, key: String)

    Parameters

    identifier

    The value of the identifier, or nil to remove the identifier. @parm key The key for the identifier