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 context,
POBUrlHandler.UrlHandlerListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidate()
To do reource clean up
|
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 context,
@NonNull
POBUrlHandler.UrlHandlerListener listener)
public void open(java.lang.String url)
url - the url on which open action to be performedpublic void invalidate()