top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

what is Webviewclient() and Webchromeclient() in android?

0 votes
778 views

What is Webview?

A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.

What is Webviewclient and WebChromeClient?

Both are used to handle a JavaScript events in Android App which are produced by WebView..Both are use different type methods for processing.

Some Important WebViewClient Methods

  • void doUpdateVisitedHistory(WebView view, String url, boolean isReload)
  • void onFormResubmission(WebView view, Message dontResend, Message resend)
  • void onLoadResource(WebView view, String url)
  • void onPageFinished(WebView view, String url)
  • void onPageStarted(WebView view, String url, Bitmap favicon)**

Some Important WebChromeClient Methods

  • Bitmap getDefaultVideoPoster()
  • View getVideoLoadingProgressView()
  • void getVisitedHistory(ValueCallback<String[]> callback)
  • void onCloseWindow(WebView window)
  • void onConsoleMessage(String message, int lineNumber, String sourceID)

Video Tutorial for Webview

posted Jan 20, 2015 by anonymous

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...