public class POBUrlHandler
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
POBUrlHandler.UrlHandlerListener
Interface to provide Url handler events
|
| Constructor and Description |
|---|
POBUrlHandler(android.content.Context appContext,
POBUrlHandler.UrlHandlerListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
open(java.lang.String url)
Handles Url opening with below mentioned rule
check if Url is deeplink supported then executes deeplink on the url and redirects to specific app and notify onLeaveApp event,
if not, then check isInternalBrowser flag is true, open Url in internal browser and notify onInternalBrowserOpen event
if not, then check open Url in external browser and notify onLeaveApp event
In case if url is invalid or null, do nothing and notify onErrorOpenUrl event
|
public POBUrlHandler(@NonNull
android.content.Context appContext,
@NonNull
POBUrlHandler.UrlHandlerListener listener)
appContext - Application contextlistener - Instance of UrlHandlerListenerpublic void open(@NonNull
java.lang.String url)
url - the url on which open action to be performed