From c03d73c588970dc6a47b0712ffd17a07b62ea95e Mon Sep 17 00:00:00 2001 From: xinking129 Date: Tue, 9 May 2023 03:41:24 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md. change file Signed-off-by: xinking129 --- .../reference/apis/js-apis-commonEventManager.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 b203c3c15f..e25142726b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -575,9 +575,9 @@ commonEventManager.removeStickyCommonEvent("sticky_event").then(() => { }); ``` -## CommonEventManager.setStaticSubscribeEventState10+ +## CommonEventManager.setStaticSubscriberState10+ -setStaticSubscribeEventState(enable: boolean, callback: AsyncCallback): void; +setStaticSubscriberState(enable: boolean, callback: AsyncCallback): void; 以回调形式为当前应用设置静态订阅事件使能或去使能状态。 @@ -606,7 +606,7 @@ setStaticSubscribeEventState(enable: boolean, callback: AsyncCallback): vo ```ts -CommonEventManager.setStaticSubscribeEventState(true, (err) => { +CommonEventManager.setStaticSubscriberState(true, (err) => { if (err.code) { console.info(`Set static subscribe event state callback failed, errCode: ${err.code}, errMes: ${err.message}`); return; @@ -615,9 +615,9 @@ CommonEventManager.setStaticSubscribeEventState(true, (err) => { }); ``` -## CommonEventManager.setStaticSubscribeEventState10+ +## CommonEventManager.setStaticSubscriberState10+ -setStaticSubscribeEventState(enable: boolean): Promise; +setStaticSubscriberState(enable: boolean): Promise; 以Promise形式为当前应用设置静态订阅事件使能或去使能状态。 @@ -651,7 +651,7 @@ setStaticSubscribeEventState(enable: boolean): Promise; ```ts -CommonEventManager.setStaticSubscribeEventState(false).then(() => { +CommonEventManager.setStaticSubscriberState(false).then(() => { console.info(`Set static subscribe event state promise success`); }).catch ((err) => { console.info(`Set static subscribe event state promise failed, errCode: ${err.code}, errMes: ${err.message}`); -- GitLab