/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | oh_commonevent_support_8h.md | 23 |static const char* const [COMMON_EVENT_SHUTDOWN](common_event/commonEventManager-definitions.md#co… 25 |static const char* const [COMMON_EVENT_BATTERY_LOW](common_event/commonEventManager-definitions.md… 26 |static const char* const [COMMON_EVENT_BATTERY_OKAY](common_event/commonEventManager-definitions.m… 27 |static const char* const [COMMON_EVENT_POWER_CONNECTED](common_event/commonEventManager-definition… 29 |static const char* const [COMMON_EVENT_SCREEN_OFF](common_event/commonEventManager-definitions.md#… 30 |static const char* const [COMMON_EVENT_SCREEN_ON](common_event/commonEventManager-definitions.md#c… 32 |static const char* const [COMMON_EVENT_TIME_TICK](common_event/commonEventManager-definitions.md#c… 33 |static const char* const [COMMON_EVENT_TIME_CHANGED](common_event/commonEventManager-definitions.m… 69 |static const char* const [COMMON_EVENT_DISCHARGING](common_event/commonEventManager-definitions.md… 70 |static const char* const [COMMON_EVENT_CHARGING](common_event/commonEventManager-definitions.md#co… [all …]
|
H A D | capi-common-event.md | 73 |static const char* const [COMMON_EVENT_SHUTDOWN](common_event/commonEventManager-definitions.md#co… 75 |static const char* const [COMMON_EVENT_BATTERY_LOW](common_event/commonEventManager-definitions.md… 76 |static const char* const [COMMON_EVENT_BATTERY_OKAY](common_event/commonEventManager-definitions.m… 79 |static const char* const [COMMON_EVENT_SCREEN_OFF](common_event/commonEventManager-definitions.md#… 80 |static const char* const [COMMON_EVENT_SCREEN_ON](common_event/commonEventManager-definitions.md#c… 82 |static const char* const [COMMON_EVENT_TIME_TICK](common_event/commonEventManager-definitions.md#c… 83 |static const char* const [COMMON_EVENT_TIME_CHANGED](common_event/commonEventManager-definitions.m… 119 |static const char* const [COMMON_EVENT_DISCHARGING](common_event/commonEventManager-definitions.md… 120 |static const char* const [COMMON_EVENT_CHARGING](common_event/commonEventManager-definitions.md#co… 129 |static const char* const [COMMON_EVENT_SPLIT_SCREEN](common_event/commonEventManager-definitions.m… [all …]
|
H A D | js-apis-commonEventManager.md | 1 # @ohos.commonEventManager (公共事件模块) 12 import { commonEventManager } from '@kit.BasicServicesKit'; 19 ## commonEventManager.publish 63 commonEventManager.publish("event", publishCB); 70 ## commonEventManager.publish 128 ## commonEventManager.createSubscriber 159 let subscriber:commonEventManager.CommonEventSubscriber; 182 ## commonEventManager.createSubscriber 223 commonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber:commonEventManager.C… 280 ## commonEventManager.subscribe [all …]
|
H A D | js-apis-commonEvent.md | 6 > - 从API Version 9开始,该接口不再维护,推荐使用新接口[@ohos.commonEventManager](js-apis-commonEventManager.md)。 29 > 从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.publish](js-apis-commonEventManage… 65 > 从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.publish](js-apis-commonEventManage… 82 import CommonEventManager from '@ohos.commonEventManager'; 111 >从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.createSubscriber](js-apis-commonEve… 127 import CommonEventManager from '@ohos.commonEventManager'; 176 import CommonEventManager from '@ohos.commonEventManager'; 201 >从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.subscribe](js-apis-commonEventManag… 216 import CommonEventManager from '@ohos.commonEventManager'; 257 >从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.subscribe](js-apis-commonEventManag… [all …]
|
H A D | js-apis-commonEventManager-sys.md | 1 # @ohos.commonEventManager (公共事件模块)(系统应用) 14 import { commonEventManager } from '@kit.BasicServicesKit'; 23 ## commonEventManager.publishAsUser<sup> 73 commonEventManager.publishAsUser("event", userId, publishCB); 80 ## commonEventManager.publishAsUser 118 let options:commonEventManager.CommonEventPublishData = { 141 ## commonEventManager.removeStickyCommonEvent<sup>10+</sup> 187 ## commonEventManager.removeStickyCommonEvent<sup>10+</sup> 236 ## commonEventManager.setStaticSubscriberState<sup>10+</sup> 280 ## commonEventManager.setStaticSubscriberState<sup>10+</sup> [all …]
|
H A D | js-apis-commonEvent-sys.md | 6 > 从API Version 9开始,该接口不再维护,推荐使用新接口[@ohos.commonEventManager](js-apis-commonEventManager.md)。 31 > 从 API version 8开始支持,从API version 9开始废弃。建议使用[commonEventManager.publishAsUser](js-apis-commonEvent… 73 > 从 API version 8开始支持,从API version 9开始废弃。建议使用[commonEventManager.publishAsUser](js-apis-commonEvent… 93 import CommonEventManager from '@ohos.commonEventManager'; 123 >从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.subscribe](js-apis-commonEventManag… 138 import CommonEventManager from '@ohos.commonEventManager';
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-notification.md | 3 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager|@ohos.commonEventManager.d.ts| 4 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publish|@ohos.commonEv… 5 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publish|@ohos.commonEv… 6 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publishAsUser|@ohos.co… 7 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publishAsUser|@ohos.co… 8 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: createSubscriber|@ohos… 9 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: createSubscriber|@ohos… 10 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: subscribe|@ohos.common… 11 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: unsubscribe|@ohos.comm… 12 |新增|NA|模块名: ohos.commonEventManager<br>类名: Support|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-notification.md | 3 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager|@ohos.commonEventManager.d.ts| 4 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publish|@ohos.commonEv… 5 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publish|@ohos.commonEv… 6 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publishAsUser|@ohos.co… 7 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: publishAsUser|@ohos.co… 8 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: createSubscriber|@ohos… 9 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: createSubscriber|@ohos… 10 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: subscribe|@ohos.common… 11 |新增|NA|模块名: ohos.commonEventManager<br>类名: commonEventManager<br>方法名 or 属性名: unsubscribe|@ohos.comm… 12 |新增|NA|模块名: ohos.commonEventManager<br>类名: Support|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta1/ |
H A D | js-apidiff-notification.md | 3 …NA|类名:commonEventManager<br>方法or属性:function removeStickyCommonEvent(event: string, callback: Async… 4 |新增|NA|类名:commonEventManager<br>方法or属性:function removeStickyCommonEvent(event: string): Promise\<vo… 5 …A|类名:commonEventManager<br>方法or属性:function setStaticSubscriberState(enable: boolean, callback: Asy… 6 |新增|NA|类名:commonEventManager<br>方法or属性:function setStaticSubscriberState(enable: boolean): Promise\… 7 …COMMON_EVENT_CHARGE_TYPE_CHANGED = "usual.event.CHARGE_TYPE_CHANGED"|@ohos.commonEventManager.d.ts| 10 …r属性:COMMON_EVENT_HTTP_PROXY_CHANGE = "usual.event.HTTP_PROXY_CHANGE"|@ohos.commonEventManager.d.ts| 11 …r属性:COMMON_EVENT_SIM_STATE_CHANGED = "usual.event.SIM_STATE_CHANGED"|@ohos.commonEventManager.d.ts| 15 …pport<br>方法or属性:COMMON_EVENT_STK_COMMAND = "usual.event.STK_COMMAND"|@ohos.commonEventManager.d.ts| 16 …>方法or属性:COMMON_EVENT_STK_SESSION_END = "usual.event.STK_SESSION_END"|@ohos.commonEventManager.d.ts| 32 …>方法or属性:COMMON_EVENT_SCREEN_UNLOCKED = "usual.event.SCREEN_UNLOCKED"|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_common_event_manager.cpp | 53 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 70 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 83 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 84 bool result = commonEventManager->UnsubscribeServiceEvent(); 97 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 113 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 134 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 152 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 181 auto commonEventManager = std::make_shared<DmCommonEventManager>(); variable 183 commonEventManager->subscriber_->OnReceiveEvent(data); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | oh_commonevent_support_8h.md | 23 |static const char* const [COMMON_EVENT_SHUTDOWN](common_event/commonEventManager-definitions.md#co… 25 |static const char* const [COMMON_EVENT_BATTERY_LOW](common_event/commonEventManager-definitions.md… 26 |static const char* const [COMMON_EVENT_BATTERY_OKAY](common_event/commonEventManager-definitions.m… 32 |static const char* const [COMMON_EVENT_TIME_TICK](common_event/commonEventManager-definitions.md#c… 33 |static const char* const [COMMON_EVENT_TIME_CHANGED](common_event/commonEventManager-definitions.m… 46 |static const char* const [COMMON_EVENT_LOCALE_CHANGED](common_event/commonEventManager-definitions… 69 |static const char* const [COMMON_EVENT_DISCHARGING](common_event/commonEventManager-definitions.md… 70 |static const char* const [COMMON_EVENT_CHARGING](common_event/commonEventManager-definitions.md#co… 79 |static const char* const [COMMON_EVENT_SPLIT_SCREEN](common_event/commonEventManager-definitions.m… 88 |static const char* const [COMMON_EVENT_SCREEN_LOCKED](common_event/commonEventManager-definitions.… [all …]
|
H A D | js-apis-commonEventManager.md | 1 # @ohos.commonEventManager (Common Event) 12 import { commonEventManager } from '@kit.BasicServicesKit'; 19 ## commonEventManager.publish 63 commonEventManager.publish("event", publishCB); 70 ## commonEventManager.publish 128 ## commonEventManager.createSubscriber 159 let subscriber:commonEventManager.CommonEventSubscriber; 182 ## commonEventManager.createSubscriber 223 commonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber:commonEventManager.C… 280 ## commonEventManager.subscribe [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-notification.md | 3 |Added|NA|Module name: ohos.commonEventManager<br>Class name: commonEventManager|@ohos.commonEventM… 4 …|Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute nam… 5 …|Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute nam… 6 …dule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: … 7 …dule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: … 8 …ule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: c… 9 …ule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: c… 10 …Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name… 11 …odule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name:… 12 |Added|NA|Module name: ohos.commonEventManager<br>Class name: Support|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-notification.md | 3 |Added|NA|Module name: ohos.commonEventManager<br>Class name: commonEventManager|@ohos.commonEventM… 4 …|Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute nam… 5 …|Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute nam… 6 …dule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: … 7 …dule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: … 8 …ule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: c… 9 …ule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name: c… 10 …Module name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name… 11 …odule name: ohos.commonEventManager<br>Class name: commonEventManager<br>Method or attribute name:… 12 |Added|NA|Module name: ohos.commonEventManager<br>Class name: Support|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta1/ |
H A D | js-apidiff-notification.md | 3 …commonEventManager<br>Method or attribute name: function removeStickyCommonEvent(event: string, ca… 4 …s name: commonEventManager<br>Method or attribute name: function removeStickyCommonEvent(event: st… 5 …commonEventManager<br>Method or attribute name: function setStaticSubscriberState(enable: boolean,… 6 …name: commonEventManager<br>Method or attribute name: function setStaticSubscriberState(enable: bo… 7 …COMMON_EVENT_CHARGE_TYPE_CHANGED = "usual.event.CHARGE_TYPE_CHANGED"|@ohos.commonEventManager.d.ts| 10 …me: COMMON_EVENT_HTTP_PROXY_CHANGE = "usual.event.HTTP_PROXY_CHANGE"|@ohos.commonEventManager.d.ts| 11 …me: COMMON_EVENT_SIM_STATE_CHANGED = "usual.event.SIM_STATE_CHANGED"|@ohos.commonEventManager.d.ts| 15 …attribute name: COMMON_EVENT_STK_COMMAND = "usual.event.STK_COMMAND"|@ohos.commonEventManager.d.ts| 16 …e name: COMMON_EVENT_STK_SESSION_END = "usual.event.STK_SESSION_END"|@ohos.commonEventManager.d.ts| 32 …e name: COMMON_EVENT_SCREEN_UNLOCKED = "usual.event.SCREEN_UNLOCKED"|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-notification.md | 3 …名:commonEventManager;<br>方法or属性:function createSubscriberSync(subscribeInfo: CommonEventSubscribeI… 4 |新增|NA|类名:commonEventManager;<br>方法or属性:export type CommonEventData = _CommonEventData;|@ohos.commo… 5 |新增|NA|类名:commonEventManager;<br>方法or属性:export type CommonEventSubscriber = _CommonEventSubscriber;… 6 |新增|NA|类名:commonEventManager;<br>方法or属性:export type CommonEventSubscribeInfo = _CommonEventSubscrib… 7 |新增|NA|类名:commonEventManager;<br>方法or属性:export type CommonEventPublishData = _CommonEventPublishDat… 8 …COMMON_EVENT_CONNECTIVITY_CHANGE = 'usual.event.CONNECTIVITY_CHANGE'|@ohos.commonEventManager.d.ts| 9 …t;<br>方法or属性:COMMON_EVENT_SPECIAL_CODE = 'common.event.SPECIAL_CODE'|@ohos.commonEventManager.d.ts| 10 …MMON_EVENT_AUDIO_QUALITY_CHANGE = 'usual.event.AUDIO_QUALITY_CHANGE'|@ohos.commonEventManager.d.ts|
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-notification.md | 9 |新增|NA|类名:commonEventManager;<br>方法or属性:function publish(event: string, callback: AsyncCallback\<vo… 10 …commonEventManager;<br>方法or属性:function publish(event: string, options: CommonEventPublishData, cal… 11 …类名:commonEventManager;<br>方法or属性:function publishAsUser(event: string, userId: number, callback: A… 12 …commonEventManager;<br>方法or属性:function publishAsUser(event: string, userId: number, options: Commo… 13 …commonEventManager;<br>方法or属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo, c… 14 …commonEventManager;<br>方法or属性:function createSubscriber(subscribeInfo: CommonEventSubscribeInfo): … 15 …commonEventManager;<br>方法or属性:function subscribe(subscriber: CommonEventSubscriber, callback: Asyn… 16 …:commonEventManager;<br>方法or属性:function unsubscribe(subscriber: CommonEventSubscriber, callback?: … 19 …类名:Support;<br>方法or属性:COMMON_EVENT_SHUTDOWN = "usual.event.SHUTDOWN"|@ohos.commonEventManager.d.ts| 26 …:Support;<br>方法or属性:COMMON_EVENT_SCREEN_ON = "usual.event.SCREEN_ON"|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/common-event/ |
H A D | common-event-subscription.md | 10 …限请见[公共事件权限列表](../../reference/apis-basic-services-kit/common_event/commonEventManager-definitions.… 15 详细接口见[接口文档](../../reference/apis-basic-services-kit/js-apis-commonEventManager.md#commoneventmanage… 29 import { BusinessError, commonEventManager } from '@kit.BasicServicesKit'; 40 let subscriber: commonEventManager.CommonEventSubscriber | null = null; 42 let subscribeInfo: commonEventManager.CommonEventSubscribeInfo = { 51 …commonEventManager.createSubscriber(subscribeInfo, (err: BusinessError, data: commonEventManager.C… 66 …commonEventManager.subscribe(subscriber, (err: BusinessError, data: commonEventManager.CommonEvent…
|
H A D | common-event-publish.md | 6 当需要发布某个自定义公共事件时,可以通过[publish()](../../reference/apis-basic-services-kit/js-apis-commonEventManager.… 14 详细接口见[接口文档](../../reference/apis-basic-services-kit/js-apis-commonEventManager.md#commoneventmanage… 29 import { BusinessError, commonEventManager } from '@kit.BasicServicesKit'; 40 commonEventManager.publish('event', (err: BusinessError) => { 58 import { BusinessError, commonEventManager } from '@kit.BasicServicesKit'; 69 let options: commonEventManager.CommonEventPublishData = { 79 commonEventManager.publish('event', options, (err: BusinessError) => {
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/ |
H A D | js-apidiff-notification.md | 3 …commonEventManager;<br>Method or attribute name: function createSubscriberSync(subscribeInfo: Comm… 4 …|NA|Class name: commonEventManager;<br>Method or attribute name: export type CommonEventData = _Co… 5 …ass name: commonEventManager;<br>Method or attribute name: export type CommonEventSubscriber = _Co… 6 … name: commonEventManager;<br>Method or attribute name: export type CommonEventSubscribeInfo = _Co… 7 …ss name: commonEventManager;<br>Method or attribute name: export type CommonEventPublishData = _Co… 8 …COMMON_EVENT_CONNECTIVITY_CHANGE = 'usual.event.CONNECTIVITY_CHANGE'|@ohos.commonEventManager.d.ts| 9 …ribute name: COMMON_EVENT_SPECIAL_CODE = 'common.event.SPECIAL_CODE'|@ohos.commonEventManager.d.ts| 10 …MMON_EVENT_AUDIO_QUALITY_CHANGE = 'usual.event.AUDIO_QUALITY_CHANGE'|@ohos.commonEventManager.d.ts|
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/ |
H A D | changelogs-ces.md | 25 下面修改的ohos.commonEvent中的公共事件替换到ohos.commonEventManager中。 27 | 模块 | ohos.commonEvent | ohos.commonEventManager | 43 将调用ohos.commonEvent中的事件替换成调用@ohos.commonEventManager,比如以下示例代码: 53 import commonEventManager from '@ohos.commonEventManager'; 54 let event: string = commonEventManager.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | manage-external-storage.md | 55 import { commonEventManager } from '@kit.BasicServicesKit'; 59 let subscriber: commonEventManager.CommonEventSubscriber; 61 const subscribeInfo: commonEventManager.CommonEventSubscribeInfo = { 70 subscriber = await commonEventManager.createSubscriber(subscribeInfo); 77 let subscriber: commonEventManager.CommonEventSubscriber|undefined; 78 //注意: 参数subscriber 是从步骤2订阅广播事件 中 await commonEventManager.createSubscriber(subscribeInfo) 获取到的。 80 …commonEventManager.subscribe(subscriber, (err: BusinessError, data: commonEventManager.CommonEvent…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.3.2/ |
H A D | changelogs-ces.md | 25 Replace the common events in **ohos.commonEvent** with those in **ohos.commonEventManager**. 27 | Common Event in ohos.commonEvent | Common Event in ohos.commonEventManager | 43 Replace the events in **ohos.commonEvent** with those in **ohos.commonEventManager**. 55 import commonEventManager from '@ohos.commonEventManager'; 56 let event: string = commonEventManager.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-notification.md | 9 …me: commonEventManager;<br>Method or attribute name: function publish(event: string, callback: Asy… 10 …commonEventManager;<br>Method or attribute name: function publish(event: string, options: CommonEv… 11 …commonEventManager;<br>Method or attribute name: function publishAsUser(event: string, userId: num… 12 …commonEventManager;<br>Method or attribute name: function publishAsUser(event: string, userId: num… 13 …commonEventManager;<br>Method or attribute name: function createSubscriber(subscribeInfo: CommonEv… 14 …commonEventManager;<br>Method or attribute name: function createSubscriber(subscribeInfo: CommonEv… 15 …commonEventManager;<br>Method or attribute name: function subscribe(subscriber: CommonEventSubscri… 16 …commonEventManager;<br>Method or attribute name: function unsubscribe(subscriber: CommonEventSubsc… 19 …od or attribute name: COMMON_EVENT_SHUTDOWN = "usual.event.SHUTDOWN"|@ohos.commonEventManager.d.ts| 26 … or attribute name: COMMON_EVENT_SCREEN_ON = "usual.event.SCREEN_ON"|@ohos.commonEventManager.d.ts| [all …]
|
/ohos5.0/docs/en/application-dev/basic-services/common-event/ |
H A D | common-event-publish.md | 6 You can use [publish()](../../reference/apis-basic-services-kit/js-apis-commonEventManager.md#commo… 14 …ee [API Reference](../../reference/apis-basic-services-kit/js-apis-commonEventManager.md#commoneve… 26 1. Import the **commonEventManager** module. 29 import { BusinessError, commonEventManager } from '@kit.BasicServicesKit'; 40 commonEventManager.publish('event', (err: BusinessError) => { 55 1. Import the **commonEventManager** module. 58 import { BusinessError, commonEventManager } from '@kit.BasicServicesKit'; 69 let options: commonEventManager.CommonEventPublishData = { 79 commonEventManager.publish('event', options, (err: BusinessError) => {
|