StorageOptions Class
The options of the storage of the origins (https://storage.spec.whatwg.org/), see BrowsingContextOptions.Storage: what navigator.storage (StorageManager) reports and enforces.
public sealed class StorageOptions : IEquatable<StorageOptions>- Implements
Constructors
| Name | Description |
|---|---|
| StorageOptions() |
StorageOptions()
StorageManager.cspublic StorageOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Quota | Gets the quota of the storage of an origin, in bytes (https://storage.spec.whatwg.org/#storage-quota): the quota that StorageManager.Estimate reports, enforced by the origin private file system (a write that makes the usage of the file system exceed it fails with a QuotaExceededError). The other storage endpoints have their own limits (e.g. StorageShed.Quota). The default is StorageOptions.DefaultQuota. |
| RequestPersistentStorage | Gets the callback called by StorageManager.Persist with the serialization of an origin, when the storage of the origin is not persistent yet: the host returns whether the "persistent-storage" permission is granted (a browser decides with its own heuristics, or asks the user). The default is null: the permission is denied, and the storage of the origins stays "best-effort". |
Quota
StorageManager.csGets the quota of the storage of an origin, in bytes (https://storage.spec.whatwg.org/#storage-quota): the quota that StorageManager.Estimate reports, enforced by the origin private file system (a write that makes the usage of the file system exceed it fails with a QuotaExceededError). The other storage endpoints have their own limits (e.g. StorageShed.Quota). The default is StorageOptions.DefaultQuota.
public long Quota { get; init; }Property value
RequestPersistentStorage
StorageManager.csGets the callback called by StorageManager.Persist with the serialization of an origin, when the storage of the origin is not persistent yet: the host returns whether the "persistent-storage" permission is granted (a browser decides with its own heuristics, or asks the user). The default is null: the permission is denied, and the storage of the origins stays "best-effort".
Property value
Methods
| Name | Description |
|---|---|
| Equals(StorageOptions?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(StorageOptions?)
public bool Equals(StorageOptions? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(StorageOptions?, StorageOptions?) | |
| operator !=(StorageOptions?, StorageOptions?) |
operator ==(StorageOptions?, StorageOptions?)
public static bool operator ==(StorageOptions? left, StorageOptions? right)No documentation is available.
operator !=(StorageOptions?, StorageOptions?)
public static bool operator !=(StorageOptions? left, StorageOptions? right)No documentation is available.
Constants
| Name | Description |
|---|---|
| DefaultQuota | The default quota of an origin: 1 GiB. |
DefaultQuota
The default quota of an origin: 1 GiB.
public const long DefaultQuota = 1073741824L