-
public class BranchViewHandlerClass 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBranchViewHandler.IBranchViewEventsInterface for calling back methods on Branch view lifecycle events
-
Field Summary
Fields Modifier and Type Field Description public final static intBRANCH_VIEW_ERR_ALREADY_SHOWINGpublic final static intBRANCH_VIEW_ERR_INVALID_VIEWpublic final static intBRANCH_VIEW_ERR_TEMP_UNAVAILABLEpublic final static intBRANCH_VIEW_ERR_REACHED_LIMIT
-
Method Summary
Modifier and Type Method Description static BranchViewHandlergetInstance()Get the singleton instance for BranchViewHandler booleanshowPendingBranchView(Context appContext)booleanshowBranchView(JSONObject branchViewObj, String actionName, Context appContext, BranchViewHandler.IBranchViewEvents callback)booleanmarkInstallOrOpenBranchViewPending(JSONObject branchViewObj, String action)booleanisInstallOrOpenBranchViewPending(Context context)voidonCurrentActivityDestroyed(Activity activity)-
-
Method Detail
-
getInstance
static BranchViewHandler getInstance()
Get the singleton instance for BranchViewHandler
-
showPendingBranchView
boolean showPendingBranchView(Context appContext)
-
showBranchView
boolean showBranchView(JSONObject branchViewObj, String actionName, Context appContext, BranchViewHandler.IBranchViewEvents callback)
-
markInstallOrOpenBranchViewPending
boolean markInstallOrOpenBranchViewPending(JSONObject branchViewObj, String action)
-
isInstallOrOpenBranchViewPending
boolean isInstallOrOpenBranchViewPending(Context context)
-
onCurrentActivityDestroyed
void onCurrentActivityDestroyed(Activity activity)
-
-
-
-