From cac6b7007a7447cb070c0ced741bfe450494c8a8 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Thu, 18 May 2023 12:42:40 +0800 Subject: [PATCH] correct method introduction Signed-off-by: xinking129 --- .../reference/apis/js-apis-commonEventManager.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md index b0457b1a12..facf185a91 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -579,7 +579,7 @@ commonEventManager.removeStickyCommonEvent("sticky_event").then(() => { setStaticSubscriberState(enable: boolean, callback: AsyncCallback): void; -以回调形式为当前应用设置静态订阅事件使能或去使能状态。 +方法介绍:为当前应用设置静态订阅事件使能或去使能状态。使用callback异步回调。 **系统能力:** SystemCapability.Notification.CommonEvent @@ -621,7 +621,7 @@ CommonEventManager.setStaticSubscriberState(true, (err) => { setStaticSubscriberState(enable: boolean): Promise; -以Promise形式为当前应用设置静态订阅事件使能或去使能状态。 +方法介绍:为当前应用设置静态订阅事件使能或去使能状态。使用Promise异步回调。 **系统能力:** SystemCapability.Notification.CommonEvent -- GitLab