diff --git a/zh-cn/application-dev/application-models/atomic-services-support-sharing.md b/zh-cn/application-dev/application-models/atomic-services-support-sharing.md index 29ed4f523054f1202a81adc75c2a747e7522b0c4..ad9788647b38f9de75b268722207037ddc67ddde 100644 --- a/zh-cn/application-dev/application-models/atomic-services-support-sharing.md +++ b/zh-cn/application-dev/application-models/atomic-services-support-sharing.md @@ -8,9 +8,9 @@ class MyUIAbility extends UIAbility { onShare(wantParams) { console.log('onShare'); - wantParams['ohos.extra.param.key.contentTitle'] = {title: "OA"}; - wantParams['ohos.extra.param.key.shareAbstract'] = {abstract: "communication for company employee"}; - wantParams['ohos.extra.param.key.shareUrl'] = {url: "oa.example.com"}; + wantParams['ohos.extra.param.key.contentTitle'] = 'shareFeatureAbility'; + wantParams['ohos.extra.param.key.shareAbstract'] = 'huawei employee'; + wantParams['ohos.extra.param.key.shareUrl'] = 'w3.huawei.com'; } } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md index fcc608f7d25bb2e7713c95f74aa788abe2eabfe8..6e452d75ec85680f82d4b9318411e4c53524d6f5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityManager.md @@ -392,6 +392,8 @@ acquireShareData(missionId: number, callback: AsyncCallback<{[key: string]: Obje **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core +**系统API**:该接口为系统接口,三方应用不支持调用。 + **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -433,6 +435,8 @@ acquireShareData(missionId: number): Promise<{[key: string]: Object}>; **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core +**系统API**:该接口为系统接口,三方应用不支持调用。 + **参数**: | 参数名 | 类型 | 必填 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md index ea0c65c6e2f84be487d2044801683329f10480ed..4d33bd4c53a83ff514d0d561fa9fff9d327703a1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md @@ -332,9 +332,9 @@ import AbilityConstant from '@ohos.app.ability.AbilityConstant'; class MyUIAbility extends UIAbility { onShare(wantParams) { console.log('onShare'); - wantParams['ohos.extra.param.key.contentTitle'] = {title: "OA"}; - wantParams['ohos.extra.param.key.shareAbstract'] = {abstract: "communication for company employee"}; - wantParams['ohos.extra.param.key.shareUrl'] = {url: "oa.example.com"}; + wantParams['ohos.extra.param.key.contentTitle'] = 'shareFeatureAbility'; + wantParams['ohos.extra.param.key.shareAbstract'] = 'huawei employee'; + wantParams['ohos.extra.param.key.shareUrl'] = 'w3.huawei.com'; } } ```