public class AdobeBranch
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AdobeBranch.EventTypeSource
Pair for holding an Event Type and Event Source.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_AFFILIATION |
static java.lang.String |
KEY_COUPON |
static java.lang.String |
KEY_CURRENCY |
static java.lang.String |
KEY_DESCRIPTION |
static java.lang.String |
KEY_REVENUE |
static java.lang.String |
KEY_SEARCH_QUERY |
static java.lang.String |
KEY_SHIPPING |
static java.lang.String |
KEY_TAX |
static java.lang.String |
KEY_TRANSACTION_ID |
| Constructor and Description |
|---|
AdobeBranch() |
| Modifier and Type | Method and Description |
|---|---|
static Branch |
getAutoInstance(android.content.Context context)
Singleton method to return the pre-initialized, or newly initialize and return, a singleton
object of the type
Branch. |
static boolean |
initSession(Branch.BranchReferralInitListener callback,
android.net.Uri data,
android.app.Activity activity)
Initializes a session with the Branch API.
|
static boolean |
registerAdobeBranchEvents(java.util.List<AdobeBranch.EventTypeSource> additionalEvents)
Register a whitelist of Event Types and Event Sources to send to Branch.
|
public static final java.lang.String KEY_AFFILIATION
public static final java.lang.String KEY_COUPON
public static final java.lang.String KEY_CURRENCY
public static final java.lang.String KEY_DESCRIPTION
public static final java.lang.String KEY_REVENUE
public static final java.lang.String KEY_SEARCH_QUERY
public static final java.lang.String KEY_SHIPPING
public static final java.lang.String KEY_TAX
public static final java.lang.String KEY_TRANSACTION_ID
public static Branch getAutoInstance(android.content.Context context)
Branch.context - A Context from which this call was made.Branch objectpublic static boolean initSession(Branch.BranchReferralInitListener callback,
android.net.Uri data,
android.app.Activity activity)
Initializes a session with the Branch API.
callback - A listener that will be called following successful (or unsuccessful)
initialization of the session with the Branch API.data - A Uri variable containing the details of the source link that
led to this initialization action.activity - The calling Activity for context.Boolean value that will return false if the supplied data
parameter cannot be handled successfully - i.e. is not of a valid URI format.public static boolean registerAdobeBranchEvents(java.util.List<AdobeBranch.EventTypeSource> additionalEvents)
additionalEvents - Additional events to listen for.
If empty, this extension will not listen for any events.
If null, this extension will default to listen for all Adobe events.
If non-empty, will listen for only those events that are in the list.