Home
last modified time | relevance | path

Searched refs:publish (Results 1 – 25 of 159) sorted by relevance

1234567

/ohos5.0/docs/en/application-dev/tools/
H A Dcem-tool.md3 The Common Event Manager enables you to print common event information and publish common events. I…
23 ### publish subsection
32 cem publish [<options>]
39 | -e/--event | Name of the common event to publish. Mandatory. |
40 …| -o/--ordered | Indicates that the common event to publish is ordered. Optional. By default, non-…
49 cem publish --event "testevent"
52 ![cem-publish-event](figures/cem-publish-event.png)
56 cem publish -e "testevent" -o -c 100 -d "this is data"
59 ![cem-publish-all](figures/cem-publish-all.png)
/ohos5.0/docs/zh-cn/application-dev/tools/
H A Dcem-tool.md14 | publish | 发布命令,用于发布公共事件。 |
24 ## 发布命令(publish
28 cem publish [<options>]
45 cem publish --event "testevent"
50 cem publish -e "testevent" -o -c 100 -d "this is data"
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-commonEvent.md22 ## commonEvent.publish<sup>(deprecated)</sup>
24 publish(event: string, callback: AsyncCallback\<void>): void
29 > 从 API version 7开始支持,从API version 9开始废弃。建议使用[commonEventManager.publish](js-apis-commonEventManage…
48 console.error(`publish failed, code is ${err.code}`);
50 console.info("publish");
55 commonEvent.publish("event", publishCB);
58 ## commonEvent.publish<sup>(deprecated)</sup>
60 publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\<void>): void
94 console.error(`publish failed, code is ${err.code}`);
96 console.info("publish");
[all …]
H A Djs-apis-commonEventManager.md19 ## commonEventManager.publish
21 publish(event: string, callback: AsyncCallback\<void>): void
56 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
58 console.info("publish success");
63 commonEventManager.publish("event", publishCB);
66 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
70 ## commonEventManager.publish
114 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
116 console.info("publish success");
121 commonEventManager.publish("event", options, publishCB);
[all …]
/ohos5.0/docs/en/application-dev/basic-services/common-event/
H A Dcommon-event-publish.md6 You can use [publish()](../../reference/apis-basic-services-kit/js-apis-commonEventManager.md#commo…
18 | publish(event:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback<void\>) | Publishes a common event.…
19 | publish(event:&nbsp;string,&nbsp;options:&nbsp;[CommonEventPublishData](../../reference/apis-basi…
36 2. Pass in the common event name and callback, and publish the event.
40 commonEventManager.publish('event', (err: BusinessError) => {
75 3. Pass in the common event name, attributes of the common event, and callback, and publish the eve…
79 commonEventManager.publish('event', options, (err: BusinessError) => {
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/common_event/
H A DcommonEventManager-definitions-sys.md21 … the boot process on the device, the event notification service is triggered to publish this event.
75 When the system charging type changes, the event notification service is triggered to publish this …
258 When the device receives an SMS message, the event notification service is triggered to publish thi…
288 …ceives a cell broadcast message, the event notification service is triggered to publish this event.
422 …ng call is missed on the device, the event notification service is triggered to publish this event.
452 …successfully sent on the device, the event notification service is triggered to publish this event.
486 When an STK command is sent, the event notification service is triggered to publish this event.
501 When an STK session ends, the event notification service is triggered to publish this event.
516 When the STK card status is updated, the event notification service is triggered to publish this ev…
531 When an STK Alpha identifier is sent, the event notification service is triggered to publish this e…
[all …]
H A DcommonEventManager-definitions.md282 When the USB port state changes, the event notification service is triggered to publish this event.
295 When a USB device is attached, the event notification service is triggered to publish this event.
308 When a USB device is detached, the event notification service is triggered to publish this event.
321 When the system time is set, the event notification service is triggered to publish this event.
347 When the system time zone changes, the event notification service is triggered to publish this even…
458 When the screen is locked, the event notification service is triggered to publish this event.
471 When the screen is unlocked, the event notification service is triggered to publish this event.
714 When the NFC RF field becomes available, the event notification service is triggered to publish thi…
806 When the Wi-Fi hotspot state changes, the event notification service is triggered to publish this e…
876 When the Wi-Fi P2P state changes, the event notification service is triggered to publish this event.
[all …]
/ohos5.0/docs/zh-cn/application-dev/notification/
H A Dlive-view-notification.md17 | [publish](../reference/apis-notification-kit/js-apis-notificationManager.md#notificationmanagerpu…
69 // 进度,更新进度时,只需修改progress,重复publish即可
85 // publish回调
88 … hilog.error(DOMAIN_NUMBER, TAG, `publish failed, code is ${err.code}, message is ${err.message}`);
90 hilog.info(DOMAIN_NUMBER, TAG, `publish success`);
103 notificationManager.publish(notificationRequest, publishCallback);
H A Dtext-notification.md18 | publish(request:&nbsp;NotificationRequest,&nbsp;callback:&nbsp;AsyncCallback&lt;void&gt;):&nbsp;v…
49 notificationManager.publish(notificationRequest, (err: BusinessError) => {
51 …hilog.error(DOMAIN_NUMBER, TAG, `Failed to publish notification. Code is ${err.code}, message is $…
76 notificationManager.publish(notificationRequest, (err: BusinessError) => {
78 …hilog.error(DOMAIN_NUMBER, TAG, `Failed to publish notification. Code is ${err.code}, message is $…
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.8.2/
H A Dchangelogs-datashare.md11 Defines the data to publish.
17 | key | string | Yes| Key of the data to publish.|
18 | data | string \| ArrayBuffer | Yes| Data to publish. If a large volume of data is to be published…
35 dataShareHelper.publish(data, "com.acts.ohos.data.datasharetest", version, publishCallback);
37 console.error("publish error " + JSON.stringify(e));
/ohos5.0/docs/en/application-dev/notification/
H A Dtext-notification.md3 You can publish text notifications to send SMS messages, alert messages, and more. There are two ty…
14 …. You specify the notification information – content, ID, slot type, and publish time – by setting…
18 | publish(request:&nbsp;NotificationRequest,&nbsp;callback:&nbsp;AsyncCallback&lt;void&gt;):&nbsp;v…
36 2. Create a **NotificationRequest** object and publish a progress notification.
51 notificationManager.publish(notificationRequest, (err: BusinessError) => {
53 …hilog.error(DOMAIN_NUMBER, TAG, `Failed to publish notification. Code is ${err.code}, message is $…
78 notificationManager.publish(notificationRequest, (err: BusinessError) => {
80 …hilog.error(DOMAIN_NUMBER, TAG, `Failed to publish notification. Code is ${err.code}, message is $…
H A Dlive-view-notification.md17 | [publish](../reference/apis-notification-kit/js-apis-notificationManager.md#notificationmanagerpu…
69 …. To update the progress, you only need to modify the progress value and publish the notification …
85 // publish callback
88 … hilog.error(DOMAIN_NUMBER, TAG, `publish failed, code is ${err.code}, message is ${err.message}`);
90 hilog.info(DOMAIN_NUMBER, TAG, `publish success`);
103 notificationManager.publish(notificationRequest, publishCallback);
H A Dnotification-with-wantagent.md3 … tap the notification panel to start the target application component or publish a public event, y…
89 4. Create a **NotificationRequest** object and publish a notification that carries the **WantAgent*…
108 notificationManager.publish(notificationRequest, (err: BusinessError) => {
110 …hilog.error(DOMAIN_NUMBER, TAG, `Failed to publish notification. Code is ${err.code}, message is $…
H A Dnotification-overview.md3 With Notification Kit, you can publish local notifications from your application and push them to u…
6 When application is running in the foreground, you can use the Notification Kit to publish notifica…
52publish scheduled notifications when your application is in the background or is not running, you …
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-commonEvent.md22 ## CommonEvent.publish<sup>(deprecated)</sup>
24 publish(event: string, callback: AsyncCallback\<void>): void
37 | event | string | Yes | Name of the common event to publish.|
48 console.error(`publish failed, code is ${err.code}`);
50 console.info("publish");
55 CommonEvent.publish("event", publishCB);
58 ## CommonEvent.publish<sup>(deprecated)</sup>
73 | event | string | Yes | Name of the common event to publish. |
94 console.error(`publish failed, code is ${err.code}`);
96 console.info("publish");
[all …]
H A Djs-apis-commonEventManager.md19 ## commonEventManager.publish
21 publish(event: string, callback: AsyncCallback\<void>): void
56 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
58 console.info("publish success");
63 commonEventManager.publish("event", publishCB);
66 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
70 ## commonEventManager.publish
114 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
116 console.info("publish success");
121 commonEventManager.publish("event", options, publishCB);
[all …]
/ohos5.0/docs/zh-cn/application-dev/basic-services/common-event/
H A Dcommon-event-publish.md6 当需要发布某个自定义公共事件时,可以通过[publish()](../../reference/apis-basic-services-kit/js-apis-commonEventManager.…
18 | publish(event:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback<void\>) | 发布公共事件。 |
19 | publish(event:&nbsp;string,&nbsp;options:&nbsp;[CommonEventPublishData](../../reference/apis-basi…
40 commonEventManager.publish('event', (err: BusinessError) => {
79 commonEventManager.publish('event', options, (err: BusinessError) => {
/ohos5.0/base/update/update_app/feature/ota/src/main/ets/notify/
H A DNotificationHelper.ets98 await notification.publish(notificationRequest).catch((err) => {
99 this.logError('showDownloading notification publish failed because ' + JSON.stringify(err));
144 await notification.publish(notificationRequest).catch((err) => {
145 this.logError('showInstalling publish failed because ' + JSON.stringify(err));
167 await notification.publish(request).then(() => {
168 this.logInfo('showUpgradeFailed publish promise success.');
170 this.logError('showUpgradeFailed publish promise failed because ' + JSON.stringify(err));
192 await notification.publish(request).then(() => {
193 this.logInfo('showUpgradeSuccess publish promise success.');
195 this.logError('showUpgradeSuccess publish promise failed because ' + JSON.stringify(err));
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-event-notification.md90 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
92 console.info("publish");
97 commonEvent.publish("myEvent", options, publishCB);
99 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
159 通过配置Notification.publish发布通知接口的参数NotificationRequest中wantAgent属性实现
180 await notificationManager.publish({
199 ## 调用notificationManager.publish发布通知失败(API 9)
/ohos5.0/docs/zh-cn/contribute/style-guide/
H A Dstyle-guide-example-code-style.md560 notificationManager.publish(notificationRequest, (err: BusinessError) => {
570 notificationManager.publish(notificationRequest)
595 notificationManager.publish(notificationRequest, (err: BusinessError) => {
598 console.log(`Failed to publish notification. Code: ${err.code}, message: ${err.message}`);
605 notificationManager.publish(notificationRequest, (err: BusinessError) => {
608 console.info(`Failed to publish notification. Code: ${err.code}, message: ${err.message}`);
615 console.error(`Failed to publish notification, err: ${err}`);
618 console.error('Failed to publish notification, err: ${err}');
621 console.error('Failed to publish notification, err: ' + JSON.stringify(err));
723 notificationManager.publish(notificationRequest, (err: BusinessError) => {
[all …]
/ohos5.0/base/location/services/location_ui/entry/src/main/ets/pages/
H A DWifiDialog.ets98 commonEventManager.publish(WIFI_NI_REJECT_EVENT, options, (err) => {
100 console.info(TAG, 'Wifi dialog cancel event publish failed .' + JSON.stringify(err));
102 console.info(TAG, 'Wifi dialog cancel event publish success.');
124 commonEventManager.publish(WIFI_NI_ACCEPT_EVENT, options, (err) => {
126 console.info(TAG, 'Wifi dialog accept event publish failed .' + JSON.stringify(err));
128 console.info(TAG, 'Wifi dialog accept event publish success.');
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-event-notification.md90 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
92 console.info("publish");
97 commonEvent.publish("myEvent", options, publishCB);
99 console.error(`publish failed, code is ${err.code}, message is ${err.message}`);
159 …wantAgent** attribute in the **NotificationRequest** parameter of the **Notification.publish** API.
180 await notificationManager.publish({
199 ## What should I do if calling notificationManager.publish fails?
/ohos5.0/docs/en/application-dev/reference/apis-distributedservice-kit/
H A Derrorcode-device-manager.md71 The last publish service is still in progress.
75 Wait until the last publish service is complete and call the publish API again.
/ohos5.0/foundation/barrierfree/accessibility/services/test/mock/common/
H A Daccessibility_common_helper.h44 void SetIsServicePublished(bool publish) in SetIsServicePublished() argument
46 isServicePublished_ = publish; in SetIsServicePublished()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/
H A Dchangelogs-datashare.md35 dataShareHelper.publish(data, "com.acts.ohos.data.datasharetest", version, publishCallback);
37 console.error("publish error " + JSON.stringify(e));

1234567