@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="StorageManager")
public class StorageManager
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
StorageManager() |
| Modifier and Type | Method and Description |
|---|---|
Promise<StorageEstimate> |
estimate()
The estimate() method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (usage), and how much space is available (quota).
|
Promise<java.lang.Boolean> |
persist()
The persist() method of the StorageManager interface requests permission to use persistent storage, and returns a Promise that resolves to true if permission is granted and box mode is persistent, and false otherwise.
|
Promise<java.lang.Boolean> |
persisted()
The persisted() method of the StorageManager interface returns a Promise that resolves to true if box mode is persistent for your site's storage.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nonnull public Promise<StorageEstimate> estimate()
@Nonnull public Promise<java.lang.Boolean> persist()
@Nonnull public Promise<java.lang.Boolean> persisted()