public static class Tracker.IdentityLink
extends java.lang.Object
Identity Link provides the opportunity to “link different identities” together. For example, you may have assigned each user of your app an internal userid which you want to connect to a user’s service identifier. Using this method, you can send both your internal id and their service identifier and connect them in the Kochava database.
Note If you know the Identity Link prior to Tracker Configuration it should be set during the configuration stage.
//During Configuration
Tracker.configure(new Configuration(getApplicationContext())
.setAppGuid("_YOUR_APP_GUID_")
.setIdentityLink(new IdentityLink()
.add("identity_key", "1234-5678-9012-3456")
.add("user_id", "qwerty-uiopas-dfghjk")
)
);
//Post Configuration
Tracker.setIdentityLink(new IdentityLink()
.add("identity_key", "1234-5678-9012-3456")
.add("user_id", "qwerty-uiopas-dfghjk")
);
| Constructor and Description |
|---|
IdentityLink() |
| Modifier and Type | Method and Description |
|---|---|
Tracker.IdentityLink |
add(java.util.Map<java.lang.String,java.lang.String> identityLink)
Adds a Map of Identity key value pairs.
|
Tracker.IdentityLink |
add(java.lang.String key,
java.lang.String value)
Adds an Identity given a key value pair.
|
public final Tracker.IdentityLink add(java.lang.String key, java.lang.String value)
key - Identity Key.value - Identity User Unique Value.public final Tracker.IdentityLink add(java.util.Map<java.lang.String,java.lang.String> identityLink)
Null and Empty keys or values are not permitted.
identityLink - Map of Identity Links.