Methods Summary |
---|
public void | onCloseWindow(WebView window)Notify the host application to close the given WebView and remove it
from the view system if necessary. At this point, WebCore has stopped
any loading in this window and has removed any cross-scripting ability
in javascript.
|
public boolean | onCreateWindow(WebView view, boolean dialog, boolean userGesture, android.os.Message resultMsg)Request the host application to create a new Webview. The host
application should handle placement of the new WebView in the view
system. The default behavior returns null.
return false;
|
public boolean | onJsAlert(WebView view, java.lang.String url, java.lang.String message, JsResult result)Tell the client to display a javascript alert dialog. If the client
returns true, WebView will assume that the client will handle the
dialog. If the client returns false, it will continue execution.
return false;
|
public boolean | onJsBeforeUnload(WebView view, java.lang.String url, java.lang.String message, JsResult result)Tell the client to display a dialog to confirm navigation away from the
current page. This is the result of the onbeforeunload javascript event.
If the client returns true, WebView will assume that the client will
handle the confirm dialog and call the appropriate JsResult method. If
the client returns false, a default value of true will be returned to
javascript to accept navigation away from the current page. The default
behavior is to return false. Setting the JsResult to true will navigate
away from the current page, false will cancel the navigation.
return false;
|
public boolean | onJsConfirm(WebView view, java.lang.String url, java.lang.String message, JsResult result)Tell the client to display a confirm dialog to the user. If the client
returns true, WebView will assume that the client will handle the
confirm dialog and call the appropriate JsResult method. If the
client returns false, a default value of false will be returned to
javascript. The default behavior is to return false.
return false;
|
public boolean | onJsPrompt(WebView view, java.lang.String url, java.lang.String message, java.lang.String defaultValue, JsPromptResult result)Tell the client to display a prompt dialog to the user. If the client
returns true, WebView will assume that the client will handle the
prompt dialog and call the appropriate JsPromptResult method. If the
client returns false, a default value of false will be returned to to
javascript. The default behavior is to return false.
return false;
|
public void | onProgressChanged(WebView view, int newProgress)Tell the host application the current progress of loading a page.
|
public void | onReceivedIcon(WebView view, android.graphics.Bitmap icon)Notify the host application of a new favicon for the current page.
|
public void | onReceivedTitle(WebView view, java.lang.String title)Notify the host application of a change in the document title.
|
public void | onRequestFocus(WebView view)Request display and focus for this WebView. This may happen due to
another WebView opening a link in this WebView and requesting that this
WebView be displayed.
|