WebViewDatabase
public
abstract
class
WebViewDatabase
extends Object
| java.lang.Object | |
| ↳ | android.webkit.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.
- Username/password pairs for web forms
- HTTP authentication username/password pairs
- Data entered into text fields (e.g. for autocomplete suggestions)
Summary
Public constructors | |
|---|---|
WebViewDatabase()
|
|
Public methods | |
|---|---|
abstract
void
|
clearFormData()
Clears any saved data for web forms. |
abstract
void
|
clearHttpAuthUsernamePassword()
Clears any saved credentials for HTTP authentication. |
abstract
void
|
clearUsernamePassword()
This method was deprecated in API level 18. Saving passwords in WebView will not be supported in future versions. |
static
WebViewDatabase
|
getInstance(Context context)
|
abstract
boolean
|
hasFormData()
Gets whether there is any saved data for web forms. |
abstract
boolean
|
hasHttpAuthUsernamePassword()
Gets whether there are any saved credentials for HTTP authentication. |
abstract
boolean
|
hasUsernamePassword()
This method was deprecated in API level 18. Saving passwords in WebView will not be supported in future versions. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Public constructors
Public methods
clearFormData
void clearFormData ()
Clears any saved data for web forms.
See also:
clearHttpAuthUsernamePassword
void clearHttpAuthUsernamePassword ()
Clears any saved credentials for HTTP authentication.
clearUsernamePassword
void clearUsernamePassword ()
This method was deprecated
in API level 18.
Saving passwords in WebView will not be supported in future versions.
Clears any saved username/password pairs for web forms. Note that these are unrelated to HTTP authentication credentials.
getInstance
WebViewDatabase getInstance (Context context)
| Parameters | |
|---|---|
context |
Context
|
| Returns | |
|---|---|
WebViewDatabase |
|
hasFormData
boolean hasFormData ()
Gets whether there is any saved data for web forms.
| Returns | |
|---|---|
boolean |
whether there is any saved data for web forms |
See also:
hasHttpAuthUsernamePassword
boolean hasHttpAuthUsernamePassword ()
Gets whether there are any saved credentials for HTTP authentication.
| Returns | |
|---|---|
boolean |
whether there are any saved credentials |
hasUsernamePassword
boolean hasUsernamePassword ()
This method was deprecated
in API level 18.
Saving passwords in WebView will not be supported in future versions.
Gets whether there are any saved username/password pairs for web forms. Note that these are unrelated to HTTP authentication credentials.
| Returns | |
|---|---|
boolean |
true if there are any saved username/password pairs |
Annotations
Interfaces
Classes
- ClientCertRequest
- ConsoleMessage
- CookieManager
- CookieSyncManager
- DateSorter
- GeolocationPermissions
- HttpAuthHandler
- JsPromptResult
- JsResult
- MimeTypeMap
- PermissionRequest
- ServiceWorkerClient
- ServiceWorkerController
- ServiceWorkerWebSettings
- SslErrorHandler
- 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
Enums