blob: 820de4ba722f2def6e6967d229b7ea3ccf222626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
---
title: StorageEstimate.usage
slug: Web/API/StorageEstimate/usage
tags:
- API
- Reference
- Secure context
- Storage
- Storage API
- StorageEstimate
- Usage
translation_of: Web/API/StorageEstimate/usage
---
<div>{{securecontext_header}}{{APIRef("Storage")}}</div>
<p><span class="seoSummary">{{domxref("StorageEstimate")}} ディクショナリの <strong><code>usage</code></strong> プロパティは、{{domxref("StorageManager.estimate()")}} を呼ぶことで得られる、オリジンやウェブアプリが使用しているストレージ量の概算値です。</span> {{Glossary("user agent","ユーザーエージェント")}}がストレージ効率を改善するために圧縮、複製防止技術、および他の方法を使用することがあるため、値は概算値です。</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox"><em>usage</em> = <em>StorageEstimate</em>.usage;
</pre>
<h3 id="Value" name="Value">値</h3>
<p>アプリが現在使用しているストレージ容量の概算値を指定する数値。</p>
<h2 id="Example" name="Example">例</h2>
<p>{{page("/ja/docs/Web/API/StorageManager/estimate", "Example")}}</p>
<h2 id="Specifications" name="Specifications">仕様</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">仕様</th>
<th scope="col">状態</th>
<th scope="col">コメント</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('Storage', '#site-storage-usage', 'usage')}}</td>
<td>{{Spec2('Storage')}}</td>
<td>初期定義</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
<p>{{Compat("api.StorageEstimate.usage")}}</p>
<h2 id="See_also" name="See_also">関連情報</h2>
<ul>
<li><a href="/ja/docs/Web/API/Storage_API">Storage API</a></li>
<li>{{domxref("Navigator")}}</li>
<li>{{domxref("StorageManager")}}</li>
<li>{{domxref("StorageEstimate")}}</li>
<li>{{domxref("StorageEstimate.quota")}}</li>
</ul>
|