public class InAppMessageWebViewClient
extends android.webkit.WebViewClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVASCRIPT_PREFIX |
static java.lang.String |
QUERY_NAME_BUTTON_ID
The query key for the button id for tracking
|
static java.lang.String |
QUERY_NAME_DEEPLINK
Query key for directing Braze to open Url intents using the INTENT.ACTION_VIEW.
|
static java.lang.String |
QUERY_NAME_EXTERNAL_OPEN
The query key for opening links externally (i.e.
|
ERROR_AUTHENTICATION, ERROR_BAD_URL, ERROR_CONNECT, ERROR_FAILED_SSL_HANDSHAKE, ERROR_FILE, ERROR_FILE_NOT_FOUND, ERROR_HOST_LOOKUP, ERROR_IO, ERROR_PROXY_AUTHENTICATION, ERROR_REDIRECT_LOOP, ERROR_TIMEOUT, ERROR_TOO_MANY_REQUESTS, ERROR_UNKNOWN, ERROR_UNSAFE_RESOURCE, ERROR_UNSUPPORTED_AUTH_SCHEME, ERROR_UNSUPPORTED_SCHEME, SAFE_BROWSING_THREAT_BILLING, SAFE_BROWSING_THREAT_MALWARE, SAFE_BROWSING_THREAT_PHISHING, SAFE_BROWSING_THREAT_UNKNOWN, SAFE_BROWSING_THREAT_UNWANTED_SOFTWARE
Constructor and Description |
---|
InAppMessageWebViewClient(android.content.Context context,
IInAppMessage inAppMessage,
IInAppMessageWebViewClientListener inAppMessageWebViewClientListener) |
Modifier and Type | Method and Description |
---|---|
void |
onPageFinished(android.webkit.WebView view,
java.lang.String url) |
void |
setWebViewClientStateListener(IWebViewClientStateListener listener) |
boolean |
shouldOverrideUrlLoading(android.webkit.WebView view,
java.lang.String url) |
boolean |
shouldOverrideUrlLoading(android.webkit.WebView view,
android.webkit.WebResourceRequest request)
Handles `appboy` schemed ("appboy://") urls in the HTML content WebViews.
|
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onRenderProcessGone, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent
public static final java.lang.String QUERY_NAME_BUTTON_ID
public static final java.lang.String QUERY_NAME_EXTERNAL_OPEN
public static final java.lang.String QUERY_NAME_DEEPLINK
public static final java.lang.String JAVASCRIPT_PREFIX
public InAppMessageWebViewClient(android.content.Context context, IInAppMessage inAppMessage, IInAppMessageWebViewClientListener inAppMessageWebViewClientListener)
inAppMessage
- the In-App Message being displayed in this WebViewinAppMessageWebViewClientListener
- the client listener. Should be non-null.public void onPageFinished(android.webkit.WebView view, java.lang.String url)
onPageFinished
in class android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(android.webkit.WebView view, android.webkit.WebResourceRequest request)
shouldOverrideUrlLoading
in class android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(android.webkit.WebView view, java.lang.String url)
shouldOverrideUrlLoading
in class android.webkit.WebViewClient
public void setWebViewClientStateListener(IWebViewClientStateListener listener)