Packagecom.myflashlab.air.extensions.richWebView.android
Classpublic class WebViewDatabase
InheritanceWebViewDatabase Inheritance 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. Access and instance of this class via: RichWebView.android.webviewDatabase



Public Methods
 MethodDefined By
  
Clears any saved data for web forms.
WebViewDatabase
  
Clears any saved credentials for HTTP authentication.
WebViewDatabase
  
getHttpAuthUsernamePassword($host:String, $realm:String):Object
Retrieves HTTP authentication credentials for a given host and realm from the WebViewDatabase instance.
WebViewDatabase
  
hasFormData():Boolean
Gets whether there is any saved data for web forms.
WebViewDatabase
  
Gets whether there are any saved credentials for HTTP authentication.
WebViewDatabase
  
setHttpAuthUsernamePassword($host:String, $realm:String, $username:String, $password:String):void
Stores HTTP authentication credentials for a given host and realm to the WebViewDatabase instance.
WebViewDatabase
Method Detail
clearFormData()method
public function clearFormData():void

Clears any saved data for web forms.

clearHttpAuthUsernamePassword()method 
public function clearHttpAuthUsernamePassword():void

Clears any saved credentials for HTTP authentication. This method only clears the username and password stored in WebViewDatabase instance.

The username and password used for http authentication might be cached in the network stack itself, and are not cleared when this method is called. WebView does not provide a special mechanism to clear HTTP authentication for implementing client logout. The client logout mechanism should be implemented by the Web site designer (such as server sending a HTTP 401 for invalidating credentials).

getHttpAuthUsernamePassword()method 
public function getHttpAuthUsernamePassword($host:String, $realm:String):Object

Retrieves HTTP authentication credentials for a given host and realm from the WebViewDatabase instance.

Works on Android 26+

Parameters

$host:String — the host to which the credentials apply
 
$realm:String — the realm to which the credentials apply

Returns
Object
hasFormData()method 
public function hasFormData():Boolean

Gets whether there is any saved data for web forms.

Returns
Boolean
hasHttpAuthUsernamePassword()method 
public function hasHttpAuthUsernamePassword():Boolean

Gets whether there are any saved credentials for HTTP authentication.

Returns
Boolean
setHttpAuthUsernamePassword()method 
public function setHttpAuthUsernamePassword($host:String, $realm:String, $username:String, $password:String):void

Stores HTTP authentication credentials for a given host and realm to the WebViewDatabase instance.

Works on Android 26+

Parameters

$host:String
 
$realm:String
 
$username:String
 
$password:String