public class BranchViewHandler
extends java.lang.Object
Class for managing Branch Views on application. Keeps track of Branch views and their states Displays the web view and handle the Branch View dialog life cycle.
Class for Managing| Modifier and Type | Class and Description |
|---|---|
static interface |
BranchViewHandler.IBranchViewEvents
Interface for calling back methods on Branch view lifecycle events
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BRANCH_VIEW_ERR_ALREADY_SHOWING |
static int |
BRANCH_VIEW_ERR_INVALID_VIEW |
| Modifier and Type | Method and Description |
|---|---|
static BranchViewHandler |
getInstance()
Get the singleton instance for BranchViewHandler
|
boolean |
isInstallOrOpenBranchViewPending(android.content.Context context) |
void |
markInstallOrOpenBranchViewPending(org.json.JSONObject branchViewObj,
java.lang.String action) |
void |
onCurrentActivityDestroyed(android.app.Activity activity) |
boolean |
showBranchView(org.json.JSONObject branchViewObj,
java.lang.String actionName,
android.app.Activity currentActivity,
BranchViewHandler.IBranchViewEvents callback) |
boolean |
showPendingBranchView(android.app.Activity currentActivity) |
public static final int BRANCH_VIEW_ERR_ALREADY_SHOWING
public static final int BRANCH_VIEW_ERR_INVALID_VIEW
public static BranchViewHandler getInstance()
BranchViewHandler instancepublic boolean showPendingBranchView(android.app.Activity currentActivity)
public boolean showBranchView(org.json.JSONObject branchViewObj,
java.lang.String actionName,
android.app.Activity currentActivity,
BranchViewHandler.IBranchViewEvents callback)
public void markInstallOrOpenBranchViewPending(org.json.JSONObject branchViewObj,
java.lang.String action)
public boolean isInstallOrOpenBranchViewPending(android.content.Context context)
public void onCurrentActivityDestroyed(android.app.Activity activity)