@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="StorageManager")
public class StorageManager
extends java.lang.Object
| 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.
|
@Nonnull public Promise<StorageEstimate> estimate()
@Nonnull public Promise<java.lang.Boolean> persist()
@Nonnull public Promise<java.lang.Boolean> persisted()