Package com.zopim.android.sdk.data
Class WebWidgetListener
- java.lang.Object
-
- WebViewClient
-
- com.zopim.android.sdk.data.WebWidgetListener
-
public class WebWidgetListener extends WebViewClient
Listener definition for web widget chat residing inandroid.webkit.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
.
-
-
Constructor Summary
Constructors Constructor and Description WebWidgetListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
msg(java.lang.String message)
boolean
shouldOverrideUrlLoading(WebView view, java.lang.String url)
Overrides url loading as Zopim web widget passes data in the url behind the delimiter
-
-
-
Method Detail
-
shouldOverrideUrlLoading
public boolean shouldOverrideUrlLoading(WebView view, java.lang.String url)
Overrides url loading as Zopim web widget passes data in the url behind the delimiter- Parameters:
view
- The WebView that is initiating the callback.url
- The url to be loaded.- Returns:
- True if the host application wants to leave the current WebView and handle the url itself, otherwise return false.
-
msg
public void msg(java.lang.String message)
-
-