Methods Summary |
---|
public void | deleteAllData()Clears all storage currently being used by the JavaScript storage APIs.
This includes the Application Cache, Web SQL Database and the HTML5 Web
Storage APIs.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|
public void | deleteOrigin(java.lang.String origin)Clears the storage currently being used by both the Application Cache and
Web SQL Database APIs by the given origin. The origin is specified using
its string representation.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|
public static android.webkit.WebStorage | getInstance()Gets the singleton instance of this class.
return WebViewFactory.getProvider().getWebStorage();
|
public void | getOrigins(ValueCallback callback)Gets the origins currently using either the Application Cache or Web SQL
Database APIs. This method operates asynchronously, with the result
being provided via a {@link ValueCallback}. The origins are provided as
a map, of type {@code Map}, from the string
representation of the origin to a {@link WebStorage.Origin} object.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|
public void | getQuotaForOrigin(java.lang.String origin, ValueCallback callback)Gets the storage quota for the Web SQL Database API for the given origin.
The quota is given in bytes and the origin is specified using its string
representation. This method operates asynchronously, with the result
being provided via a {@link ValueCallback}. Note that a quota is not
enforced on a per-origin basis for the Application Cache API.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|
public void | getUsageForOrigin(java.lang.String origin, ValueCallback callback)Gets the amount of storage currently being used by both the Application
Cache and Web SQL Database APIs by the given origin. The amount is given
in bytes and the origin is specified using its string representation.
This method operates asynchronously, with the result being provided via
a {@link ValueCallback}.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|
public void | setQuotaForOrigin(java.lang.String origin, long quota)Sets the storage quota for the Web SQL Database API for the given origin.
The quota is specified in bytes and the origin is specified using its string
representation. Note that a quota is not enforced on a per-origin basis
for the Application Cache API.
// Must be a no-op for backward compatibility: see the hidden constructor for reason.
|