public class WebWidgetListener
extends android.webkit.WebViewClient
WebView
. Allows web widget to notify chat APIs of data node changes.
Updates to this listener will result in data source update.
Updated paths will issue a notification broadcasts for registered observers in DataSource
.
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_MALWARE, SAFE_BROWSING_THREAT_PHISHING, SAFE_BROWSING_THREAT_UNKNOWN, SAFE_BROWSING_THREAT_UNWANTED_SOFTWARE
Constructor and Description |
---|
WebWidgetListener() |
Modifier and Type | Method and Description |
---|---|
void |
msg(java.lang.String message) |
boolean |
shouldOverrideUrlLoading(android.webkit.WebView view,
java.lang.String url)
Overrides url loading as Zopim web widget passes data in the url behind the delimiter
|
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageFinished, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onRenderProcessGone, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent, shouldOverrideUrlLoading
public boolean shouldOverrideUrlLoading(android.webkit.WebView view, java.lang.String url)
shouldOverrideUrlLoading
in class android.webkit.WebViewClient
view
- The WebView that is initiating the callback.url
- The url to be loaded.public void msg(java.lang.String message)