UANamedUser

@interface UANamedUser : UAComponent

The named user is an alternate method of identifying the device. Once a named user is associated to the device, it can be used to send push notifications to the device.

  • The named user ID for this device.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *identifier;

    Swift

    var identifier: String? { get set }
  • Force updating the association or disassociation of the current named user ID.

    Declaration

    Objective-C

    - (void)forceUpdate;

    Swift

    func forceUpdate()
  • Add tags to named user tags. To update the server, make all of your changes, then call updateTags.

    Declaration

    Objective-C

    - (void)addTags:(nonnull NSArray<NSString *> *)tags
              group:(nonnull NSString *)tagGroupID;

    Swift

    func addTags(_ tags: [String], group tagGroupID: String)

    Parameters

    tags

    Array of tags to add.

    tagGroupID

    Tag group ID string.

  • Removes tags from named user tags. To update the server, make all of your changes, then call updateTags.

    Declaration

    Objective-C

    - (void)removeTags:(nonnull NSArray<NSString *> *)tags
                 group:(nonnull NSString *)tagGroupID;

    Swift

    func removeTags(_ tags: [String], group tagGroupID: String)

    Parameters

    tags

    Array of tags to remove.

    tagGroupID

    Tag group ID string.

  • Set tags for named user tags. To update the server, make all of your changes, then call updateTags.

    Declaration

    Objective-C

    - (void)setTags:(nonnull NSArray<NSString *> *)tags
              group:(nonnull NSString *)tagGroupID;

    Swift

    func setTags(_ tags: [String], group tagGroupID: String)

    Parameters

    tags

    Array of tags to set.

    tagGroupID

    Tag group ID string.

  • Update named user tags.

    Declaration

    Objective-C

    - (void)updateTags;

    Swift

    func updateTags()