StorageManager
js.html.StorageManager (extern class)
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:
Instance Members
persisted(): js.lib.Promise<Bool>
Returns a Promise
that resolves to true
if persistence has already been granted for your site's storage.
Returns |
---|
js.lib.Promise<Bool> |
persist(): js.lib.Promise<Bool>
Returns a Promise
that resolves to true
if the user agent is able to persist your site's storage.
Returns |
---|
js.lib.Promise<Bool> |
estimate(): js.lib.Promise<StorageEstimate>
Returns a StorageEstimate
object containing usage and quota numbers for your origin.
Returns |
---|
js.lib.Promise<StorageEstimate> |