W3cubDocs

/Haxe JavaScript

StorageEstimate

package js.html

Available on js

The StorageEstimate dictionary is used by the StorageManager to provide estimates of the size of a site's or application's data store and how much of it is in use. The estimate() method returns an object that conforms to this dictionary when its Promise resolves.

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

See also:

Fields

optionalusage:Null<Int>

A numeric value approximating the amount of storage space currently being used by the site or Web app, out of the available space as indicated by quota.

optionalquota:Null<Int>

A numeric value which provides a conservative approximation of the total storage the user's device or computer has available for the site origin or Web app. It's possible that there's more than this amount of space available though you can't rely on that being the case.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/StorageEstimate.html