public class

AssociatedIdentifiers

extends Object
implements JsonSerializable
java.lang.Object
   ↳ com.urbanairship.analytics.AssociatedIdentifiers

Class Overview

Creates a map of associated identifier. Used to associate identifiers with editAssociatedIdentifiers().

Summary

Nested Classes
class AssociatedIdentifiers.Editor Interface use to modify identifiers in the AssociatedIdentifiers object. 
Constants
int MAX_CHARACTER_COUNT Max character count for an ID or key.
int MAX_IDS Max number of associated identifiers that can be set at a time.
Public Methods
static AssociatedIdentifiers fromJson(String json)
This method is deprecated. To be removed in SDK 12. Use #fromJson(JsonValue) instead.
String getAdvertisingId()
Get the advertising ID.
Map<StringString> getIds()
Gets the associated identifiers as a unmodifiable map.
boolean isLimitAdTrackingEnabled()
Retrieves whether the user has limit ad tracking enabled or not.
JsonValue toJsonValue()
Returns the objects represented as a JsonValue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.json.JsonSerializable

Constants

public static final int MAX_CHARACTER_COUNT

Max character count for an ID or key.

Constant Value: 255 (0x000000ff)

public static final int MAX_IDS

Max number of associated identifiers that can be set at a time.

Constant Value: 100 (0x00000064)

Public Methods

public static AssociatedIdentifiers fromJson (String json)

This method is deprecated.
To be removed in SDK 12. Use #fromJson(JsonValue) instead.

See #fromJson(JsonValue)

Parameters
json The json value.
Returns
  • The parsed AssociatedIdentifiers.
Throws
JsonException If the JSON is invalid.

public String getAdvertisingId ()

Get the advertising ID.

Returns
  • The advertising ID or null if not found.

public Map<StringString> getIds ()

Gets the associated identifiers as a unmodifiable map.

Returns
  • The associated identifiers.

public boolean isLimitAdTrackingEnabled ()

Retrieves whether the user has limit ad tracking enabled or not.

Returns
  • true if user limit ad tracking enabled, false otherwise.

public JsonValue toJsonValue ()

Returns the objects represented as a JsonValue.

Returns
  • The object as a JsonValue.