Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. StorageManager

StorageManager

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨December 2021⁩.

* Some parts of this feature may have varying levels of support.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Note: This feature is available inWeb Workers.

TheStorageManager interface of theStorage API provides an interface for managing persistence permissions and estimating available storage. You can get a reference to this interface using eithernavigator.storage orWorkerNavigator.storage.

Instance methods

StorageManager.estimate()

Returns aPromise that resolves to an object containing usage and quota numbers for your origin.

StorageManager.getDirectory()

Used to obtain a reference to aFileSystemDirectoryHandle object allowing access to a directory and its contents, stored in theorigin private file system. Returns aPromise that fulfills with aFileSystemDirectoryHandle object.

StorageManager.persist()

Returns aPromise that resolves totrue if the user agent is able to persist your site's storage.

StorageManager.persisted()

Returns aPromise that resolves totrue if persistence has already been granted for your site's storage.

Specifications

Specification
Storage
# storagemanager

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp