diff --git a/en/application-dev/reference/apis/js-apis-storage-statistics.md b/en/application-dev/reference/apis/js-apis-storage-statistics.md index 10f08e3b588e7c03d44ef3eac6ade39a42a5febe..d646fd424d8f7fa6c431a388879e9cf63678a632 100644 --- a/en/application-dev/reference/apis/js-apis-storage-statistics.md +++ b/en/application-dev/reference/apis/js-apis-storage-statistics.md @@ -29,15 +29,15 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description| -| ---------- | ------ | ---- | ---- | -| volumeUuid | string | Yes | UUID of the volume.| + | Name | Type | Mandatory| Description| + | ---------- | ------ | ---- | ---- | + | volumeUuid | string | Yes | UUID of the volume.| **Return value** -| Type | Description | -| --------------------- | ---------------- | -| Promise<number> | Promise used to return the total size of the volume.| + | Type | Description | + | --------------------- | ---------------- | + | Promise<number> | Promise used to return the total size of the volume.| **Example** @@ -52,7 +52,7 @@ This is a system API and cannot be called by third-party applications. ## storageStatistics.getTotalSizeOfVolume -getTotalSizeOfVolume(volumeUuid: string, callback:AsyncCallback<number>):void +getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void Asynchronously obtains the total size of the specified volume. This API uses a callback to return the result. @@ -66,10 +66,10 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------ | ---- | -------------------------- | -| volumeUuid | string | Yes | UUID of the volume. | -| callback | callback:AsyncCallback<number> | Yes | Callback invoked to return the total size of the volume.| + | Name | Type | Mandatory| Description | + | ---------- | ------------------------------------ | ---- | -------------------------- | + | volumeUuid | string | Yes | UUID of the volume. | + | callback | callback: AsyncCallback<number> | Yes | Callback invoked to return the total size of the volume.| **Example** @@ -97,15 +97,15 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description| -| ---------- | ------ | ---- | ---- | -| volumeUuid | string | Yes | UUID of the volume.| + | Name | Type | Mandatory| Description| + | ---------- | ------ | ---- | ---- | + | volumeUuid | string | Yes | UUID of the volume.| **Return value** -| Type | Description | -| --------------------- | ------------------ | -| Promise<number> | Promise used to return the available space of the volume.| + | Type | Description | + | --------------------- | ------------------ | + | Promise<number> | Promise used to return the available space of the volume.| **Example** @@ -121,7 +121,7 @@ This is a system API and cannot be called by third-party applications. ## storageStatistics.getFreeSizeOfVolume -getFreeSizeOfVolume(volumeUuid: string, callback:AsyncCallback<number>):void +getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback<number>): void Asynchronously obtains the available space of the specified volume. This API uses a callback to return the result. @@ -135,10 +135,10 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------ | ---- | ---------------------------- | -| volumeUuid | string | Yes | UUID of the volume. | -| callback | callback:AsyncCallback<number> | Yes | Callback invoked to return the available space of the volume.| + | Name | Type | Mandatory| Description | + | ---------- | ------------------------------------ | ---- | ---------------------------- | + | volumeUuid | string | Yes | UUID of the volume. | + | callback | callback: AsyncCallback<number> | Yes | Callback invoked to return the available space of the volume.| **Example** @@ -166,15 +166,15 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ----------- | ------ | ---- | -------- | -| packageName | string | Yes | Bundle name of the application.| + | Name | Type | Mandatory| Description | + | ----------- | ------ | ---- | -------- | + | packageName | string | Yes | Bundle name of the application.| **Return value** -| Type | Description | -| ------------------------------------------ | -------------------------- | -| Promise<[Bundlestats](#bundlestats)> | Promise used to return the space information obtained.| + | Type | Description | + | ------------------------------------------ | -------------------------- | + | Promise<[Bundlestats](#bundlestats)> | Promise used to return the space information obtained.| **Example** @@ -203,10 +203,10 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| -------- | --------------------------------------------------------- | ---- | ------------------------------------ | -| packageName | string | Yes | Bundle name of the application.| -| callback | callback:AsyncCallback<[Bundlestats](#bundlestats)> | Yes | Callback invoked to return the space information obtained.| + | Name | Type | Mandatory| Description | + | -------- | --------------------------------------------------------- | ---- | ------------------------------------ | + | packageName | string | Yes | Bundle name of the application.| + | callback | callback: AsyncCallback<[Bundlestats](#bundlestats)> | Yes | Callback invoked to return the space information obtained.| **Example** @@ -228,9 +228,9 @@ Asynchronously obtains space information of the current third-party application. **Return value** -| Type | Description | -| ------------------------------------------ | -------------------------- | -| Promise<[Bundlestats](#bundlestats)> | Promise used to return the space information obtained. | + | Type | Description | + | ------------------------------------------ | -------------------------- | + | Promise<[Bundlestats](#bundlestats)> | Promise used to return the space information obtained. | **Example** @@ -249,9 +249,9 @@ Asynchronously obtains space information of the current third-party application. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------------------------------------- | ---- | ------------------------------------ | -| callback | callback:AsyncCallback<[BundleStats](#bundlestats)> | Yes | Callback invoked to return the space information obtained. | + | Name | Type | Mandatory | Description | + | -------- | --------------------------------------------------------- | ---- | ------------------------------------ | + | callback | callback: AsyncCallback<[BundleStats](#bundlestats)> | Yes | Callback invoked to return the space information obtained. | **Example** @@ -294,9 +294,9 @@ This is a system API and cannot be called by third-party applications. **Return value** -| Type | Description | -| --------------------- | ------------------ | -| Promise<number> | Promise used to return the total space of the built-in memory card. | + | Type | Description | + | --------------------- | ------------------ | + | Promise<number> | Promise used to return the total space of the built-in memory card. | **Example** @@ -321,9 +321,9 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------------ | ---- | ------------------------ | -| callback | callback:AsyncCallback<number> | Yes | Callback invoked to return the total space of the built-in memory card.| + | Name | Type | Mandatory | Description | + | -------- | ------------------------------------ | ---- | ------------------------ | + | callback | callback: AsyncCallback<number> | Yes | Callback invoked to return the total space of the built-in memory card.| **Example** @@ -351,9 +351,9 @@ This is a system API and cannot be called by third-party applications. **Return value** -| Type | Description | -| --------------------- | ------------------ | -| Promise<number> | Promise used to return the available space of the built-in memory card.| + | Type | Description | + | --------------------- | ------------------ | + | Promise<number> | Promise used to return the available space of the built-in memory card.| **Example** @@ -379,9 +379,9 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------ | ---- | ------------------------- | -| callback | callback:AsyncCallback<number> | Yes | Callback invoked to return the available space of the built-in memory card.| + | Name | Type | Mandatory| Description | + | -------- | ------------------------------------ | ---- | ------------------------- | + | callback | callback: AsyncCallback<number> | Yes | Callback invoked to return the available space of the built-in memory card.| **Example** @@ -408,9 +408,9 @@ This is a system API and cannot be called by third-party applications. **Return value** -| Type | Description | -| --------------------- | ---------------- | -| Promise<number> | Promise used to return the system space obtained.| + | Type | Description | + | --------------------- | ---------------- | + | Promise<number> | Promise used to return the system space obtained.| **Example** @@ -424,7 +424,7 @@ This is a system API and cannot be called by third-party applications. ## storageStatistics.getSystemSize9+ -getSystemSize(callback:AsyncCallback<number>):void +getSystemSize(callback: AsyncCallback<number>): void Asynchronously obtains the system space. This API uses a callback to return the result. @@ -438,9 +438,9 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------ | ---- | -------------------------- | -| callback | callback:AsyncCallback<number> | Yes | Callback used to return the system space obtained.| + | Name | Type | Mandatory| Description | + | ---------- | ------------------------------------ | ---- | -------------------------- | + | callback | callback: AsyncCallback<number> | Yes | Callback used to return the system space obtained.| **Example** @@ -467,15 +467,15 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description| -| ---------- | ------ | ---- | ---- | -| userId | number | No | User ID.
Value:
-  Set this parameter to the ID of the user to be queried.
-  If no value is specified, information about the current user is queried.| + | Name | Type | Mandatory| Description| + | ---------- | ------ | ---- | ---- | + | userId | number | No | User ID.
Value:
-  Set this parameter to the ID of the user to be queried.
-  If no value is specified, information about the current user is queried.| **Return value** -| Type | Description | -| --------------------- | ---------------- | -| Promise<[StorageStats](#storagestats9)> | Promise used to return the information obtained.| + | Type | Description | + | --------------------- | ---------------- | + | Promise<[StorageStats](#storagestats)> | Promise used to return the information obtained.| **Example** @@ -490,7 +490,7 @@ This is a system API and cannot be called by third-party applications. ## storageStatistics.getUserStorageStats9+ -getUserStorageStats(userId: number, callback:AsyncCallback<StorageStats>):void +getUserStorageStats(userId: number, callback: AsyncCallback<StorageStats>): void Asynchronously obtains the space occupied by each type of user data. This API uses a callback to return the result. @@ -504,10 +504,10 @@ This is a system API and cannot be called by third-party applications. **Parameters** -| Name | Type | Mandatory| Description | -| ---------- | ------------------------------------ | ---- | -------------------------- | -| userId | number | No | User ID.
Value:
-  Set this parameter to the ID of the user to be queried.
-  If no value is specified, information about the current user is queried. | -| callback | callback:AsyncCallback<[StorageStats](#storagestats9)> | Yes | Callback invoked to return the information obtained.| + | Name | Type | Mandatory| Description | + | ---------- | ------------------------------------ | ---- | -------------------------- | + | userId | number | No | User ID.
Value:
-  Set this parameter to the ID of the user to be queried.
-  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** diff --git a/en/application-dev/reference/apis/js-apis-volumemanager.md b/en/application-dev/reference/apis/js-apis-volumemanager.md index 87cfad2f83ba3c25d4ab90a874777d86bb2cd473..79cbf5db12746acc8e18d293c03fe3aa48bdc86a 100644 --- a/en/application-dev/reference/apis/js-apis-volumemanager.md +++ b/en/application-dev/reference/apis/js-apis-volumemanager.md @@ -52,7 +52,7 @@ Asynchronously obtains information about all available volumes. This API uses a | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------- | ---- | ------------------------------------ | - | callback | callback:AsyncCallback<[Volume](#volume)[]> | Yes | Callback invoked to return the volume information obtained.| + | callback | callback: AsyncCallback<[Volume](#volume)[]> | Yes | Callback invoked to return the volume information obtained.| **Example** @@ -110,7 +110,7 @@ Asynchronously obtains the available space of the specified volume. This API use | Name | Type | Mandatory| Description | | -------- | ------------------------------------- | ---- | -------------------- | | volumeId | string | Yes | Volume ID. | - | callback | callback:AsyncCallback<boolean> | Yes | Callback invoked to return the execution result.| + | callback | callback: AsyncCallback<boolean> | Yes | Callback invoked to return the execution result.| **Example** @@ -154,7 +154,7 @@ Asynchronously unmounts a volume. This API uses a promise to return the result. ## volumemanager.unmount -unmount(volumeId: string, callback:AsyncCallback<boolean>):void +unmount(volumeId: string, callback: AsyncCallback<boolean>): void Asynchronously unmounts a volume. This API uses a callback to return the result. @@ -167,7 +167,7 @@ Asynchronously unmounts a volume. This API uses a callback to return the result. | Name | Type | Mandatory| Description | | -------- | ------------------------------------- | ---- | -------------------- | | volumeId | string | Yes | Volume ID. | - | callback | callback:AsyncCallback<boolean> | Yes | Callback invoked to return the execution result.| + | callback | callback: AsyncCallback<boolean> | Yes | Callback invoked to return the execution result.| **Example** @@ -226,7 +226,7 @@ Asynchronously obtains volume information based on the UUID. This API uses a cal | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | -------------------- | | uuid | string | Yes | UUID of the volume. | - | callback | callback:AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained.| + | callback | callback: AsyncCallback<[Volume](#volume)> | Yes | Callback invoked to return the volume information obtained.| **Example** @@ -347,7 +347,7 @@ Asynchronously sets the volume description based on the UUID. This API uses a ca | ---------- | --------------------------------------- | ---- | ---------------- | | uuid | string | Yes | UUID of the volume. | | description | string | Yes | Volume description. | - | callback | callback:AsyncCallback<void> | Yes | Callback invoked to return the result.| + | callback | callback: AsyncCallback<void> | Yes | Callback invoked to return the result.| **Example** @@ -410,7 +410,7 @@ Asynchronously formats a volume. This API uses a callback to return the result. | -------- | ------------------------- | ---- | ----------------------------- | | volumeId | string | Yes | Volume ID. | | fsType | string | Yes | File system type.| - | callback | callback:AsyncCallback<void> | Yes | Called after the volume is formatted. | + | callback | callback: AsyncCallback<void> | Yes | Called after the volume is formatted. | **Example** @@ -473,7 +473,7 @@ Asynchronously partitions a disk. This API uses a callback to return the result. | -------- | --------------------------------------- | ---- | ---------------- | | diskId | string | Yes | ID of the disk to which the volume belongs. | | type | number | Yes | Partition type. | - | callback | callback:AsyncCallback<void> | Yes | Callback invoked to return the result. | + | callback | callback: AsyncCallback<void> | Yes | Callback invoked to return the result. | **Example**