未验证 提交 6cd02883 编写于 作者: O openharmony_ci 提交者: Gitee

!6195 修改document securityLabel storage-statistics文档

Merge pull request !6195 from raoxian/cherry-pick-1656589986
......@@ -85,7 +85,7 @@ choose(types:string[], callback:AsyncCallback<string>): void
## document.show
show(uri:string, types:string):Promise<void>
show(uri:string, type:string):Promise<void>
异步打开URI对应的文件,使用promise形式返回结果。
......@@ -96,7 +96,7 @@ show(uri:string, types:string):Promise<void>
| 参数 | 类型 | 必填 | 说明 |
| ---- | ------ | ---- | ---------------------------- |
| uri | string | 是 | 待打开的文件URI |
| types | string | 是 | 待打开文件的类型 |
| type | string | 是 | 待打开文件的类型 |
- 返回值:
......@@ -107,14 +107,14 @@ show(uri:string, types:string):Promise<void>
- 示例:
```js
let types = "";
let type = "";
let uri = "";
document.show(uri, types);
document.show(uri, type);
```
## document.show
show(uri:string, types:string, callback:AsyncCallback<void>): void
show(uri:string, type:string, callback:AsyncCallback<void>): void
异步打开URI对应的文件,使用callback形式返回结果。
......@@ -125,15 +125,15 @@ show(uri:string, types:string, callback:AsyncCallback<void>): void
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------- | ---- | ---------------------------- |
| uri | string | 是 | 待打开的文件URI |
| types | string | 是 | 待打开文件的类型 |
| type | string | 是 | 待打开文件的类型 |
| callback | AsyncCallback<void> | 是 | 异步打开uri对应文件(注:当前返回错误码) |
- 示例:
```js
let types = "";
let type = "";
let uri = "";
document.show(uri, types, function(err) {
document.show(uri, type, function(err) {
//do something
});
```
......
......@@ -79,7 +79,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void&gt
```
## securityLabel.setSecurityLabelSync
setSecurityLabelSync(path:string, dataLevel:string):void
setSecurityLabelSync(path:string, type:dataLevel):void
以同步方法设置数据标签。
......
......@@ -212,7 +212,7 @@ getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>)
## storagestatistics.getCurrentBundleStats<sup>9+</sup>
getCurrentBundleStats(): Promise<BundleStats>
getCurrentBundleStats(): Promise&lt;BundleStats&gt;
第三方应用异步获取占用空间,以promise方式返回。
......@@ -233,7 +233,7 @@ getCurrentBundleStats(): Promise<BundleStats>
## storagestatistics.getCurrentBundleStats<sup>9+</sup>
getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void
getCurrentBundleStats(callback: AsyncCallback&lt;BundleStats&gt;): void
第三方应用异步获取占用空间,以callback方式返回。
......@@ -258,7 +258,7 @@ getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void
## BundleStats<sup>9+</sup>
**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。<br>
该接口为系统接口,三方应用不支持调用
- 属性
......@@ -274,7 +274,7 @@ getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void
## storagestatistics.getTotalSize<sup>9+</sup>
getTotalSize(): Promise<number>
getTotalSize(): Promise&lt;number&gt;
获取内卡的总空间大小,以promise方式返回。
......@@ -299,7 +299,7 @@ getTotalSize(): Promise<number>
## storagestatistics.getTotalSize<sup>9+</sup>
getTotalSize(callback: AsyncCallback<number>): void
getTotalSize(callback: AsyncCallback&lt;number&gt;): void
获取内卡的总空间大小,以callback方式返回。
......@@ -327,7 +327,7 @@ getTotalSize(callback: AsyncCallback<number>): void
## storagestatistics.getFreeSize<sup>9+</sup>
getFreeSize(): Promise<number>
getFreeSize(): Promise&lt;number&gt;
获取内卡的可用空间大小,以promise方式返回。
......@@ -353,7 +353,7 @@ getFreeSize(): Promise<number>
## storagestatistics.getFreeSize<sup>9+</sup>
getFreeSize(callback: AsyncCallback<number>): void
getFreeSize(callback: AsyncCallback&lt;number&gt;): void
获取内卡的可用空间大小,以callback方式返回。
......@@ -439,7 +439,7 @@ getSystemSize(callback:AsyncCallback&lt;number&gt;):void
## storagestatistics.getUserStorageStats<sup>9+</sup>
getUserStorageStats(userId?: number): Promise&lt;StorageStats&gt;
getUserStorageStats(userId: number): Promise&lt;StorageStats&gt;
异步获取用户各类别数据大小,以promise方式返回。
......@@ -474,7 +474,7 @@ getUserStorageStats(userId?: number): Promise&lt;StorageStats&gt;
## storagestatistics.getUserStorageStats<sup>9+</sup>
getUserStorageStats(userId?: number, callback:AsyncCallback&lt;StorageStats&gt;):void
getUserStorageStats(userId: number, callback:AsyncCallback&lt;StorageStats&gt;):void
异步获取用户各类别数据大小,以callback方式返回。
......@@ -505,7 +505,7 @@ getUserStorageStats(userId?: number, callback:AsyncCallback&lt;StorageStats&gt;)
## StorageStats<sup>9+</sup>
**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。<br>
该接口为系统接口,三方应用不支持调用
- 属性
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册