Lines Matching refs:commonEventManager
1 # @ohos.commonEventManager (公共事件模块)(系统应用)
9 > 当前界面仅包含本模块的系统接口,其他公开接口参见[CommonEventManager](./js-apis-commonEventManager.md)。
14 import { commonEventManager } from '@kit.BasicServicesKit';
21 全部系统公共事件枚举定义请参见[系统公共事件定义](./common_event/commonEventManager-definitions.md)。
23 ## commonEventManager.publishAsUser<sup>
37 | event | string | 是 | 表示要发送的公共事件。详见[系统公共事件定义](./common_event/commonEventManager…
73 commonEventManager.publishAsUser("event", userId, publishCB);
80 ## commonEventManager.publishAsUser
94 …ing | 是 | 表示要发布的公共事件。详见[系统公共事件定义](./common_event/commonEventManager-definitions.…
118 let options:commonEventManager.CommonEventPublishData = {
134 commonEventManager.publishAsUser("event", userId, options, publishCB);
141 ## commonEventManager.removeStickyCommonEvent<sup>10+</sup>
157 …ing | 是 | 表示被移除的粘性公共事件。详见[系统公共事件定义](./common_event/commonEventManager-definitions.…
178 commonEventManager.removeStickyCommonEvent("sticky_event", (err: BusinessError) => {
187 ## commonEventManager.removeStickyCommonEvent<sup>10+</sup>
203 | event | string | 是 | 表示被移除的粘性公共事件。详见[系统公共事件定义](./common_event/commonEventManager-definitions.m…
229 commonEventManager.removeStickyCommonEvent("sticky_event").then(() => {
236 ## commonEventManager.setStaticSubscriberState<sup>10+</sup>
271 commonEventManager.setStaticSubscriberState(true, (err: BusinessError) => {
280 ## commonEventManager.setStaticSubscriberState<sup>10+</sup>
321 commonEventManager.setStaticSubscriberState(false).then(() => {
328 ## commonEventManager.setStaticSubscriberState<sup>12+</sup>
371 commonEventManager.setStaticSubscriberState(true, evenName).then(() => {