Added in API level 1
android.webkit
Provides tools for browsing the web.
For more information about building apps with web-based content, see the Web Apps Overview.
Annotations
JavascriptInterface | Annotation that allows exposing methods to JavaScript. |
Interfaces
DownloadListener | |
GeolocationPermissions.Callback | A callback interface used by the host application to set the Geolocation permission state for an origin. |
PluginStub | This interface is used to implement plugins in a WebView. |
ValueCallback<T> | A callback interface used to provide values asynchronously. |
WebChromeClient.CustomViewCallback | A callback interface used by the host application to notify the current page that its custom view has been dismissed. |
WebIconDatabase.IconListener | This interface was deprecated in API level 18. This interface is obsolete. |
WebResourceRequest |
Encompasses parameters to the WebViewClient#shouldInterceptRequest method.
|
WebStorage.QuotaUpdater | This interface was deprecated in API level 19. This class is obsolete and no longer used. |
WebView.FindListener | Interface to listen for find results. |
WebView.PictureListener | This interface was deprecated in API level 12. This interface is now obsolete. |
Classes
ClientCertRequest |
ClientCertRequest: The user receives an instance of this class as
a parameter of WebViewClient#onReceivedClientCertRequest .
|
ConsoleMessage | Public class representing a JavaScript console message from WebCore. |
CookieManager |
Manages the cookies used by an application's WebView instances.
|
CookieSyncManager |
This class was deprecated
in API level 21.
The WebView now automatically syncs cookies as necessary.
You no longer need to create or use the CookieSyncManager.
To manually force a sync you can use the CookieManager
method CookieManager#flush which is a synchronous
replacement for sync() .
|
DateSorter | Sorts dates into the following groups: Today Yesterday seven days ago one month ago older than a month ago |
GeolocationPermissions | This class is used to manage permissions for the WebView's Geolocation JavaScript API. |
HttpAuthHandler | Represents a request for HTTP authentication. |
JsPromptResult | Public class for handling JavaScript prompt requests. |
JsResult |
An instance of this class is passed as a parameter in various WebChromeClient action
notifications.
|
MimeTypeMap | Two-way map that maps MIME-types to file extensions and vice versa. |
PermissionRequest | This class defines a permission request and is used when web content requests access to protected resources. |
RenderProcessGoneDetail | This class provides more specific information about why the render process exited. |
SafeBrowsingResponse | Used to indicate an action to take when hitting a malicious URL. |
ServiceWorkerClient |
Base class for clients to capture Service Worker related callbacks,
see ServiceWorkerController for usage example.
|
ServiceWorkerController | Manages Service Workers used by WebView. |
ServiceWorkerWebSettings | Manages settings state for all Service Workers. |
SslErrorHandler | Represents a request for handling an SSL error. |
TracingConfig | Holds tracing configuration information and predefined settings. |
TracingConfig.Builder |
Builder used to create TracingConfig objects.
|
TracingController | Manages tracing of WebViews. |
URLUtil | |
WebBackForwardList | This class contains the back/forward list for a WebView. |
WebChromeClient | |
WebChromeClient.FileChooserParams |
Parameters used in the WebChromeClient.onShowFileChooser(WebView, ValueCallback, FileChooserParams) method.
|
WebHistoryItem | A convenience class for accessing fields in an entry in the back/forward list of a WebView. |
WebIconDatabase |
This class was deprecated
in API level 18.
This class is only required when running on devices
up to Build.VERSION_CODES.JELLY_BEAN_MR2
|
WebMessage | The Java representation of the HTML5 PostMessage event. |
WebMessagePort |
The Java representation of the HTML5 message ports. |
WebMessagePort.WebMessageCallback | The listener for handling MessagePort events. |
WebResourceError | Encapsulates information about errors that occurred during loading of web resources. |
WebResourceResponse | Encapsulates a resource response. |
WebSettings | Manages settings state for a WebView. |
WebStorage |
This class is used to manage the JavaScript storage APIs provided by the
WebView .
|
WebStorage.Origin | This class encapsulates information about the amount of storage currently used by an origin for the JavaScript storage APIs. |
WebView | A View that displays web pages. |
WebView.HitTestResult | |
WebView.VisualStateCallback |
Callback interface supplied to WebView.postVisualStateCallback(long, VisualStateCallback) for receiving
notifications about the visual state.
|
WebView.WebViewTransport | Transportation object for returning WebView across thread boundaries. |
WebViewClient | |
WebViewDatabase | This class allows developers to determine whether any WebView used in the application has stored any of the following types of browsing data and to clear any such stored data for all WebViews in the application. |
WebViewFragment |
This class was deprecated
in API level 28.
Manually call WebView#onPause() and WebView#onResume()
|
WebViewRenderProcess |
WebViewRenderProcess provides an opaque handle to a WebView renderer.
|
WebViewRenderProcessClient |
Used to receive callbacks on WebView renderer events.
|
Enums
ConsoleMessage.MessageLevel | |
WebSettings.LayoutAlgorithm | Enum for controlling the layout of html. |
WebSettings.PluginState | The plugin state effects how plugins are treated on a page. |
WebSettings.RenderPriority | |
WebSettings.TextSize |
This enum was deprecated
in API level 15.
Use WebSettings#setTextZoom(int) and WebSettings#getTextZoom() instead.
|
WebSettings.ZoomDensity | Enum for specifying the WebView's desired density. |
Annotations
Interfaces
Classes
- ClientCertRequest
- ConsoleMessage
- CookieManager
- CookieSyncManager
- DateSorter
- GeolocationPermissions
- HttpAuthHandler
- JsPromptResult
- JsResult
- MimeTypeMap
- PermissionRequest
- RenderProcessGoneDetail
- SafeBrowsingResponse
- ServiceWorkerClient
- ServiceWorkerController
- ServiceWorkerWebSettings
- SslErrorHandler
- TracingConfig
- TracingConfig.Builder
- TracingController
- URLUtil
- WebBackForwardList
- WebChromeClient
- WebChromeClient.FileChooserParams
- WebHistoryItem
- WebIconDatabase
- WebMessage
- WebMessagePort
- WebMessagePort.WebMessageCallback
- WebResourceError
- WebResourceResponse
- WebSettings
- WebStorage
- WebStorage.Origin
- WebView
- WebView.HitTestResult
- WebView.VisualStateCallback
- WebView.WebViewTransport
- WebViewClient
- WebViewDatabase
- WebViewFragment
- WebViewRenderProcess
- WebViewRenderProcessClient
Enums