From 3a28ef209c628e970e5fbbef21eb9193fb467396 Mon Sep 17 00:00:00 2001 From: raoxian Date: Thu, 30 Jun 2022 19:51:58 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2062e0f2b=20from=20https://gitee.com/stor?= =?UTF-8?q?age-sandboxing/docs/pulls/6194=20=E4=BF=AE=E6=94=B9document=20s?= =?UTF-8?q?ecurityLabel=20-storage-statistics=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: raoxian --- .../reference/apis/js-apis-document.md | 16 +++++++-------- .../reference/apis/js-apis-securityLabel.md | 2 +- .../apis/js-apis-storage-statistics.md | 20 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-document.md b/zh-cn/application-dev/reference/apis/js-apis-document.md index 805b7039bb..55565aaaff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-document.md +++ b/zh-cn/application-dev/reference/apis/js-apis-document.md @@ -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 }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md index c8429742e2..255ec57926 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md +++ b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @@ -79,7 +79,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void> ``` ## securityLabel.setSecurityLabelSync -setSecurityLabelSync(path:string, dataLevel:string):void +setSecurityLabelSync(path:string, type:dataLevel):void 以同步方法设置数据标签。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md index 498e21eeaa..511e73ec6f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md @@ -212,7 +212,7 @@ getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>) ## storagestatistics.getCurrentBundleStats9+ -getCurrentBundleStats(): Promise +getCurrentBundleStats(): Promise<BundleStats> 第三方应用异步获取占用空间,以promise方式返回。 @@ -233,7 +233,7 @@ getCurrentBundleStats(): Promise ## storagestatistics.getCurrentBundleStats9+ -getCurrentBundleStats(callback: AsyncCallback): void +getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void 第三方应用异步获取占用空间,以callback方式返回。 @@ -258,7 +258,7 @@ getCurrentBundleStats(callback: AsyncCallback): void ## BundleStats9+ -**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。 +**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
该接口为系统接口,三方应用不支持调用 - 属性 @@ -274,7 +274,7 @@ getCurrentBundleStats(callback: AsyncCallback): void ## storagestatistics.getTotalSize9+ -getTotalSize(): Promise +getTotalSize(): Promise<number> 获取内卡的总空间大小,以promise方式返回。 @@ -299,7 +299,7 @@ getTotalSize(): Promise ## storagestatistics.getTotalSize9+ -getTotalSize(callback: AsyncCallback): void +getTotalSize(callback: AsyncCallback<number>): void 获取内卡的总空间大小,以callback方式返回。 @@ -327,7 +327,7 @@ getTotalSize(callback: AsyncCallback): void ## storagestatistics.getFreeSize9+ -getFreeSize(): Promise +getFreeSize(): Promise<number> 获取内卡的可用空间大小,以promise方式返回。 @@ -353,7 +353,7 @@ getFreeSize(): Promise ## storagestatistics.getFreeSize9+ -getFreeSize(callback: AsyncCallback): void +getFreeSize(callback: AsyncCallback<number>): void 获取内卡的可用空间大小,以callback方式返回。 @@ -439,7 +439,7 @@ getSystemSize(callback:AsyncCallback<number>):void ## storagestatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number): Promise<StorageStats> +getUserStorageStats(userId: number): Promise<StorageStats> 异步获取用户各类别数据大小,以promise方式返回。 @@ -474,7 +474,7 @@ getUserStorageStats(userId?: number): Promise<StorageStats> ## storagestatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number, callback:AsyncCallback<StorageStats>):void +getUserStorageStats(userId: number, callback:AsyncCallback<StorageStats>):void 异步获取用户各类别数据大小,以callback方式返回。 @@ -505,7 +505,7 @@ getUserStorageStats(userId?: number, callback:AsyncCallback<StorageStats>) ## StorageStats9+ -**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。 +**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
该接口为系统接口,三方应用不支持调用 - 属性 -- GitLab