> - 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 APIs of this module can be used to obtain 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.
Obtains 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
...
...
@@ -148,7 +148,7 @@ Asynchronously obtains the available space of the specified volume. This API use
@@ -452,7 +452,7 @@ Asynchronously obtains the space occupied by each type of user data. This API us
| Name | Type | Mandatory| Description|
| ---------- | ------ | ---- | ---- |
| userId | string | No | User ID.<br>Value:<br>- Set this parameter to the ID of the user to be queried.<br>- If no value is specified, information about the current user is queried.|
| userId | string | No | User ID.<br>- Set this parameter to the ID of the user to be queried.<br>- If no value is specified, information about the current user is queried.|
- Return value
...
...
@@ -487,7 +487,7 @@ Asynchronously obtains the space occupied by each type of user data. This API us
| userId | string | No | User ID.<br>Value:<br>- Set this parameter to the ID of the user to be queried.<br>- If no value is specified, information about the current user is queried. |
| userId | string | No | User ID.<br>- Set this parameter to the ID of the user to be queried.<br>- If no value is specified, information about the current user is queried. |
| callback | callback:AsyncCallback<[StorageStats](#StorageStats)> | Yes | Callback invoked to return the information obtained.|
- Example
...
...
@@ -505,13 +505,13 @@ Asynchronously obtains the space occupied by each type of user data. This API us