Class WebWidgetListener



  • public class WebWidgetListener
    extends WebViewClient
    Listener definition for web widget chat residing in android.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.

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebWidgetListener

        public WebWidgetListener()
    • 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)