From 1444b900ab0e6ffc371037607359228572ddb130 Mon Sep 17 00:00:00 2001 From: zengsiyu Date: Thu, 17 Mar 2022 14:55:05 +0800 Subject: [PATCH] remove ordered common event examples Signed-off-by: zengsiyu Change-Id: I8f0a02cb7b0b96f380df820fc2923764163653bb Signed-off-by: zengsiyu --- .../reference/apis/js-apis-commonEvent.md | 134 +++++------------- 1 file changed, 32 insertions(+), 102 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md index 8ad8d1f219..c244934d6d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md @@ -168,7 +168,7 @@ publish(event: string, callback: AsyncCallback\): void 发布公共事件(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -201,7 +201,7 @@ publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\ 发布公共事件指定发布信息(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -243,7 +243,7 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback\): vo 向指定用户发布公共事件(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -280,7 +280,7 @@ publishAsUser(event: string, userId: number, options: CommonEventPublishData, ca 向指定用户发布公共事件并指定发布信息(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -325,7 +325,7 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallbac 创建订阅者(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -367,7 +367,7 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\): 取消订阅公共事件(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -587,7 +517,7 @@ CommonEvent.unsubscribe(subscriber, UnsubscribeCallBack); ## CommonEventPublishData -**系统能力:**以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent | 名称 | 读写属性 | 类型 | 必填 | 描述 | | --------------------- | -------- | -------------------- | ---- | ---------------------------- | @@ -600,7 +530,7 @@ CommonEvent.unsubscribe(subscriber, UnsubscribeCallBack); ## CommonEventSubscribeInfo -**系统能力:**以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent | 名称 | 读写属性 | 类型 | 必填 | 描述 | | ------------------- | -------- | -------------- | ---- | ------------------------------------------------------------ | @@ -612,7 +542,7 @@ CommonEvent.unsubscribe(subscriber, UnsubscribeCallBack); ## CommonEventData -**系统能力:**以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent | 名称 | 读写属性 | 类型 | 必填 | 描述 | | ---------- | -------- | -------------------- | ---- | ------------------------------------------------------- | @@ -630,7 +560,7 @@ getCode(callback: AsyncCallback\): void 获取公共事件的结果代码(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -661,7 +591,7 @@ getCode(): Promise\ 获取公共事件的结果代码(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **返回值:** @@ -687,7 +617,7 @@ setCode(code: number, callback: AsyncCallback\): void 设置公共事件的结果代码(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -718,7 +648,7 @@ setCode(code: number): Promise\ 设置公共事件的结果代码(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -744,7 +674,7 @@ getData(callback: AsyncCallback\): void 获取公共事件的结果数据(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -774,7 +704,7 @@ getData(): Promise\ 获取公共事件的结果数据(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **返回值:** @@ -800,7 +730,7 @@ setData(data: string, callback: AsyncCallback\): void 设置公共事件的结果数据(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -831,7 +761,7 @@ setData(data: string): Promise\ 设置公共事件的结果数据(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -857,7 +787,7 @@ setCodeAndData(code: number, data: string, callback:AsyncCallback\): void 设置公共事件的结果代码和结果数据(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -889,7 +819,7 @@ setCodeAndData(code: number, data: string): Promise\ 设置公共事件的结果代码和结果数据(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -918,7 +848,7 @@ isOrderedCommonEvent(callback: AsyncCallback\): void 返回true代表是有序公共事件,false代表不是有序公共事件。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -950,7 +880,7 @@ isOrderedCommonEvent(): Promise\ 返回true代表是有序公共事件,false代表不是有序公共事件。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **返回值:** @@ -976,7 +906,7 @@ abortCommonEvent(callback: AsyncCallback\): void 取消当前的公共事件,仅对有序公共事件有效,取消后,公共事件不再向下一个订阅者传递(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -1006,7 +936,7 @@ abortCommonEvent(): Promise\ 取消当前的公共事件,仅对有序公共事件有效,取消后,公共事件不再向下一个订阅者传递(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **示例:** @@ -1026,7 +956,7 @@ clearAbortCommonEvent(callback: AsyncCallback\): void 清除当前公共事件的取消状态,仅对有序公共事件有效(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -1056,7 +986,7 @@ clearAbortCommonEvent(): Promise\ 清除当前公共事件的取消状态,仅对有序公共事件有效(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **示例:** @@ -1076,7 +1006,7 @@ getAbortCommonEvent(callback: AsyncCallback\): void 获取当前有序公共事件是否取消的状态(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -1106,7 +1036,7 @@ getAbortCommonEvent(): Promise\ 获取当前有序公共事件是否取消的状态(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **返回值:** @@ -1132,7 +1062,7 @@ getSubscribeInfo(callback: AsyncCallback\): void 获取订阅者的订阅信息(callback形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **参数:** @@ -1162,7 +1092,7 @@ getSubscribeInfo(): Promise\ 获取订阅者的订阅信息(Promise形式)。 -**系统能力**:SystemCapability.Notification.CommonEvent +**系统能力:** SystemCapability.Notification.CommonEvent **返回值:** -- GitLab