The StorageManager interface of the the Storage API provides an interface for managing persistance permissions and estimating available storage. You can get a reference to this interface using either navigator.storage or WorkerNavigator.storage.

Documentation StorageManager by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Methods

estimate():Promise<StorageEstimate>

Returns a StorageEstimate object containing usage and quota numbers for your origin.

Throws:

null

DOMError

persist():Promise<Bool>

Returns a Promise that resolves to true if the user agent is able to persist your site's storage.

Throws:

null

DOMError

persisted():Promise<Bool>

Returns a Promise that resolves to true if persistence has already been granted for your site's storage.

Throws:

null

DOMError