StorageManager
package js.html
Available on js
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 |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/StorageManager.html