public class AdobeBranch
extends java.lang.Object
| 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.
|
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, indicating false if initialization is unsuccessful.