FileDocCategorySizeDatePackage
WebViewDatabase.javaAPI DocAndroid 5.1 API3329Thu Mar 12 22:22:10 GMT 2015android.webkit

WebViewDatabase

public abstract class WebViewDatabase extends Object
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)

Fields Summary
protected static final String
LOGTAG
Constructors Summary
Methods Summary
public abstract voidclearFormData()
Clears any saved data for web forms.

see
#hasFormData

public abstract voidclearHttpAuthUsernamePassword()
Clears any saved credentials for HTTP authentication.

see
WebView#getHttpAuthUsernamePassword
see
WebView#setHttpAuthUsernamePassword
see
#hasHttpAuthUsernamePassword

public abstract voidclearUsernamePassword()
Clears any saved username/password pairs for web forms. Note that these are unrelated to HTTP authentication credentials.

see
WebView#savePassword
see
#hasUsernamePassword
deprecated
Saving passwords in WebView will not be supported in future versions.

public static android.webkit.WebViewDatabasegetInstance(android.content.Context context)


         
        return WebViewFactory.getProvider().getWebViewDatabase(context);
    
public abstract booleanhasFormData()
Gets whether there is any saved data for web forms.

return
whether there is any saved data for web forms
see
#clearFormData

public abstract booleanhasHttpAuthUsernamePassword()
Gets whether there are any saved credentials for HTTP authentication.

return
whether there are any saved credentials
see
WebView#getHttpAuthUsernamePassword
see
WebView#setHttpAuthUsernamePassword
see
#clearHttpAuthUsernamePassword

public abstract booleanhasUsernamePassword()
Gets whether there are any saved username/password pairs for web forms. Note that these are unrelated to HTTP authentication credentials.

return
true if there are any saved username/password pairs
see
WebView#savePassword
see
#clearUsernamePassworda
deprecated
Saving passwords in WebView will not be supported in future versions.