未验证 提交 55e8ac11 编写于 作者: O openharmony_ci 提交者: Gitee

!7995 [翻译完成】#I5HXBJ

Merge pull request !7995 from Annie_wang/PR6944
# App Storage Statistics
The **storageStatistics** module provides APIs for obtaining storage space information, including the space of built-in and plug-in memory cards, space occupied by different types of data, and space of application data.
> **NOTE**<br/>
>
> - The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> - API version 9 is a canary version for trial use. The APIs of this version may be unstable.
The **storageStatistics** module provides APIs for obtaining storage space information, including the space of built-in and plug-in memory cards, space occupied by different types of data, and space of application data.
## Modules to Import
```js
......@@ -264,14 +264,13 @@ Asynchronously obtains space information of the current third-party application.
## BundleStats<sup>9+</sup>
### Attributes
**System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics
This is a system API and cannot be called by third-party applications.
### Attributes
| Name | Type | Description |
| --------- | ------ | -------------- |
| appSize | number | Size of the application. |
......@@ -523,14 +522,13 @@ This is a system API and cannot be called by third-party applications.
## StorageStats<sup>9+</sup>
### Attributes
**System capability**: SystemCapability.FileManagement.StorageService.SpatialStatistics
This is a system API and cannot be called by third-party applications.
### Attributes
| Name | Type | Description |
| --------- | ------ | -------------- |
| total | number | Total space of the built-in memory card. |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册