public final class Visitor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Visitor.VisitorCallback
For use with
getUrlVariablesAsync(VisitorCallback), called with Visitor ID Service URL parameters in
String form. |
| Constructor and Description |
|---|
Visitor() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
appendToURL(java.lang.String URL) |
static java.util.List<VisitorID> |
getIdentifiers() |
static java.lang.String |
getMarketingCloudId() |
static void |
getUrlVariablesAsync(Visitor.VisitorCallback callback)
Gets Visitor ID Service variables in URL variable form for consumption in hybrid app.
|
static void |
syncIdentifier(java.lang.String identifierType,
java.lang.String identifier,
VisitorID.VisitorIDAuthenticationState authenticationState) |
static void |
syncIdentifiers(java.util.Map<java.lang.String,java.lang.String> identifiers) |
static void |
syncIdentifiers(java.util.Map<java.lang.String,java.lang.String> identifiers,
VisitorID.VisitorIDAuthenticationState authenticationState) |
public static java.lang.String getMarketingCloudId()
public static void getUrlVariablesAsync(Visitor.VisitorCallback callback)
This method will return an appropriately formed String containing Visitor ID Service URL variables.
There will be no leading & or ? punctuation, as the caller is responsible for placing it in their resulting
URI in the correct location.
If an error occurs while retrieving the URL sting, callback will be called with null.
callback - Visitor.VisitorCallback which will be called containing Visitor ID Service URL parameterspublic static void syncIdentifier(java.lang.String identifierType,
java.lang.String identifier,
VisitorID.VisitorIDAuthenticationState authenticationState)
public static void syncIdentifiers(java.util.Map<java.lang.String,java.lang.String> identifiers)
public static void syncIdentifiers(java.util.Map<java.lang.String,java.lang.String> identifiers,
VisitorID.VisitorIDAuthenticationState authenticationState)
public static java.util.List<VisitorID> getIdentifiers()
public static java.lang.String appendToURL(java.lang.String URL)