From ba9902c443de22c51e883df2bcee30f947ca32e8 Mon Sep 17 00:00:00 2001 From: duanweiling Date: Mon, 18 Jul 2022 09:47:25 +0800 Subject: [PATCH] =?UTF-8?q?DataShare=20docs=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: duanweiling --- ...apis-application-DataShareExtensionAbility.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md index cfbcbb9b3a..3bde79fc8f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md @@ -17,6 +17,20 @@ import DataShareExtensionAbility from '@ohos.application.DataShareExtensionAbility' ``` +## 权限 + +无 + +## 属性 + +**系统能力**:SystemCapability.DistributedDataManager.DataShare.Provider + +**系统API**: 此接口为系统接口,三方应用不支持调用。 + +| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| -------- | -------- | -------- | -------- | -------- | +| context | [ExtensionContext](js-apis-extension-context.md) | 是 | 否 |表示数据共享扩展能力上下文。 | + ## onCreate onCreate?(want: Want, callback: AsyncCallback<void>): void @@ -284,7 +298,7 @@ export default class DataShareExtAbility extends DataShareExtensionAbility { }; ``` -## BatchInsert +## batchInsert BatchInsert?(uri: string, valueBuckets: Array<ValuesBucket>, callback: AsyncCallback<number>): void -- GitLab