This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

queryUsageAndQuota

Summary

Queries the current usage (how much data is stored) and quota available for the requesting application.

Method of apis/quota_management/StorageQuotaapis/quota_management/StorageQuota

Syntax

 object.queryUsageAndQuota(/* see parameter list */);

Parameters

successCallback

Data-type
String

This callback is used to return new quota information granted by a User Agent. Quota is provided by the grantedQuotaInBytes parameter.

void (unsigned long grantedQuotaInBytes)

errorCallback

Data-type
String

This callback is used to return information when an error has occured. Details are provided by the error parameter.

void (DOMError error)

Return Value

No return value

Related specifications

W3C Quota Management Specification
W3C Editor’s Draft

See also

Related articles

Off-line Storage