web api instance method
StorageAccessHandle: estimate() method
[!NOTE] See
estimate()to understand usage.
Syntax
estimate()
Parameters
None.
Return value
A Promise that fulfills with an unpartitioned StorageEstimate object.
Exceptions
SecurityErrorDomException- : Thrown if access was not granted.
See estimate()
Examples
document.requestStorageAccess({ estimate: true }).then(
(handle) => {
console.log("estimate access granted");
await handle.estimate();
},
() => {
console.log("estimate access denied");
},
);
[!NOTE] See Using the Storage Access API for a more complete example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.