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 b203c3c15fd6a8a665e9a9f120ff4eb4ad440c7a..e25142726b38e73d5538f0138cbe69b21676b0d7 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}`);