public class

NamedUser

extends AirshipComponent
java.lang.Object
   ↳ com.urbanairship.AirshipComponent
     ↳ com.urbanairship.channel.NamedUser

This class is deprecated.
Use Contact instead.

Class Overview

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.

Summary

Public Methods
AttributeEditor editAttributes()
This method is deprecated. Use editAttributes() instead.
TagGroupsEditor editTagGroups()
This method is deprecated. Use editTagGroups() instead.
void forceUpdate()
This method is deprecated. No longer necessary
String getId()
This method is deprecated. Use getNamedUserId() instead.
void setId(String namedUserId)
This method is deprecated. Use identify(String) or reset() instead.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public AttributeEditor editAttributes ()

This method is deprecated.
Use editAttributes() instead.

Edit the attributes associated with the named user.

Returns

public TagGroupsEditor editTagGroups ()

This method is deprecated.
Use editTagGroups() instead.

Edit the named user tags.

Returns
  • The TagGroupsEditor.

public void forceUpdate ()

This method is deprecated.
No longer necessary

Forces a named user update.

public String getId ()

This method is deprecated.
Use getNamedUserId() instead.

Returns the named user ID.

Returns
  • The named user ID as a string or null if it does not exist.

public void setId (String namedUserId)

This method is deprecated.
Use identify(String) or reset() instead.

Sets the named user ID.

To associate the named user ID, its length must be greater than 0 and less than 129 characters. To disassociate the named user ID, its value must be empty or null.

Parameters
namedUserId The named user ID string.