java.lang.Object | |
↳ | android.webkit.WebViewClient |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notify the host application to update its visited links database.
| |||||||||||
As the host application if the browser should resend data as the
requested page was a result of a POST.
| |||||||||||
Notify the host application that the WebView will load the resource
specified by the given url.
| |||||||||||
Notify the host application that a page has finished loading.
| |||||||||||
Notify the host application that a page has started loading.
| |||||||||||
Report an error to an activity.
| |||||||||||
Notify the host application to handle an authentication request.
| |||||||||||
Notify the host application that the scale applied to the WebView has
changed.
| |||||||||||
Notify the host application that there have been an excessive number of
HTTP redirects.
| |||||||||||
Notify the host application that a key was not handled by the WebView.
| |||||||||||
Give the host application a chance to handle the key event synchronously.
| |||||||||||
Give the host application a chance to take over the control when a new
url is about to be loaded in the current WebView.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Notify the host application to update its visited links database.
view | The WebView that is initiating the callback. |
---|---|
url | The url being visited. |
isReload | True if this url is being reloaded. |
As the host application if the browser should resend data as the requested page was a result of a POST. The default is to not resend the data.
view | The WebView that is initiating the callback. |
---|---|
dontResend | The message to send if the browser should not resend |
resend | The message to send if the browser should resend data |
Notify the host application that the WebView will load the resource specified by the given url.
view | The WebView that is initiating the callback. |
---|---|
url | The url of the resource the WebView will load. |
Notify the host application that a page has finished loading. This method is called only for main frame. When onPageFinished() is called, the rendering picture may not be updated yet. To get the notification for the new Picture, use onNewPicture(WebView, Picture).
view | The WebView that is initiating the callback. |
---|---|
url | The url of the page. |
Notify the host application that a page has started loading. This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted one time for the main frame. This also means that onPageStarted will not be called when the contents of an embedded frame changes, i.e. clicking a link whose target is an iframe.
view | The WebView that is initiating the callback. |
---|---|
url | The url to be loaded. |
favicon | The favicon for this page if it already exists in the database. |
Report an error to an activity. These errors come up from WebCore, and are network errors.
view | The WebView that is initiating the callback. |
---|---|
errorCode | The HTTP error code. |
description | A String description. |
failingUrl | The url that failed. |
Notify the host application to handle an authentication request. The default behavior is to cancel the request.
view | The WebView that is initiating the callback. |
---|---|
handler | The HttpAuthHandler that will handle the user's response. |
host | The host requiring authentication. |
realm | A description to help store user credentials for future visits. |
Notify the host application that the scale applied to the WebView has changed.
view | he WebView that is initiating the callback. |
---|---|
oldScale | The old scale factor |
newScale | The new scale factor |
Notify the host application that there have been an excessive number of HTTP redirects. As the host application if it would like to continue trying to load the resource. The default behavior is to send the cancel message.
view | The WebView that is initiating the callback. |
---|---|
cancelMsg | The message to send if the host wants to cancel |
continueMsg | The message to send if the host wants to continue |
Notify the host application that a key was not handled by the WebView. Except system keys, WebView always consumes the keys in the normal flow or if shouldOverrideKeyEvent returns true. This is called asynchronously from where the key is dispatched. It gives the host application an chance to handle the unhandled key events.
view | The WebView that is initiating the callback. |
---|---|
event | The key event. |
Give the host application a chance to handle the key event synchronously. e.g. menu shortcut key events need to be filtered this way. If return true, WebView will not handle the key event. If return false, WebView will always handle the key event, so none of the super in the view chain will see the key event. The default behavior returns false.
view | The WebView that is initiating the callback. |
---|---|
event | The key event. |
Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView. If WebViewClient is not provided, by default WebView will ask Activity Manager to choose the proper handler for the url. If WebViewClient is provided, return true means the host application handles the url, while return false means the current WebView handles the url.
view | The WebView that is initiating the callback. |
---|---|
url | The url to be loaded. |