public class WebWidgetListener extends 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_UNSUPPORTED_AUTH_SCHEME, ERROR_UNSUPPORTED_SCHEME
Constructor and Description |
---|
WebWidgetListener() |
Modifier and Type | Method and Description |
---|---|
void |
msg(String message) |
boolean |
shouldOverrideUrlLoading(WebView view,
String url)
Overrides url loading as Zopim web widget passes data in the url behind the delimiter
|
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageFinished, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedHttpAuthRequest, onReceivedLoginRequest, onReceivedSslError, onScaleChanged, onTooManyRedirects, onUnhandledInputEvent, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent
public boolean shouldOverrideUrlLoading(WebView view, String url)
shouldOverrideUrlLoading
in class WebViewClient
view
- The WebView that is initiating the callback.url
- The url to be loaded.public void msg(String message)