Home
last modified time | relevance | path

Searched refs:notification (Results 1 – 25 of 740) sorted by relevance

12345678910>>...30

/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/
H A Djs-apidiff-notification.md4notification<br>类名: notification<br>方法 or 属性:function publishAsBundle(request: NotificationRequest…
5notification<br>类名: notification<br>方法 or 属性:function publishAsBundle(request: NotificationRequest…
6notification<br>类名: notification<br>方法 or 属性:function cancelAsBundle(id: number, representativeBun…
7notification<br>类名: notification<br>方法 or 属性:function cancelAsBundle(id: number, representativeBun…
9notification<br>类名: notification<br>方法 or 属性:function enableNotificationSlot(bundle: BundleOption,…
10notification<br>类名: notification<br>方法 or 属性:function isNotificationSlotEnabled(bundle: BundleOpti…
11notification<br>类名: notification<br>方法 or 属性:function isNotificationSlotEnabled(bundle: BundleOpti…
12notification<br>类名: notification<br>方法 or 属性:function setSyncNotificationEnabledWithoutApp(userId:…
13notification<br>类名: notification<br>方法 or 属性:function setSyncNotificationEnabledWithoutApp(userId:…
14notification<br>类名: notification<br>方法 or 属性:function getSyncNotificationEnabledWithoutApp(userId:…
[all …]
/ohos5.0/base/telephony/call_manager/test/fuzztest/callnotification_fuzzer/
H A Dcallnotification_fuzzer.cpp56 notification->CallDestroyed(details); in IncomingCallNotificationFunc()
59 notification->IsFullScreen(); in IncomingCallNotificationFunc()
77 notification->WakeupDevice(callObjectPtr); in IncomingCallWakeupFunc()
78 notification->IsPowerAbilityExist(); in IncomingCallWakeupFunc()
79 notification->CallDestroyed(details); in IncomingCallWakeupFunc()
99 notification->CallDestroyed(details); in ProximitySensorFunc()
124 notification->CallDestroyed(details); in StatusBarFunc()
144 notification->Init(); in WiredHeadsetHandlerFunc()
146 notification->CallDestroyed(details); in WiredHeadsetHandlerFunc()
197 notification->CallDestroyed(details); in MissedCallNotificationFunc()
[all …]
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/notification_fuzzer/
H A Dnotification_fuzzer.cpp32 notification.EnableLight(); in DoSomethingInterestingWithMyAPI()
33 notification.EnableSound(); in DoSomethingInterestingWithMyAPI()
37 notification.GetLabel(); in DoSomethingInterestingWithMyAPI()
40 notification.GetGroup(); in DoSomethingInterestingWithMyAPI()
41 notification.GetId(); in DoSomethingInterestingWithMyAPI()
42 notification.GetKey(); in DoSomethingInterestingWithMyAPI()
44 notification.GetPostTime(); in DoSomethingInterestingWithMyAPI()
45 notification.GetSound(); in DoSomethingInterestingWithMyAPI()
46 notification.GetUid(); in DoSomethingInterestingWithMyAPI()
47 notification.GetPid(); in DoSomethingInterestingWithMyAPI()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-notification-kit/
H A DReadme-CN.md7 - notification
10 - [NotificationContent](js-apis-inner-notification-notificationContent.md)
11 - [NotificationFlags](js-apis-inner-notification-notificationFlags.md)
12 - [NotificationRequest](js-apis-inner-notification-notificationRequest.md)
13 - [NotificationSlot](js-apis-inner-notification-notificationSlot.md)
27 - [@ohos.notification (Notification模块)](js-apis-notification.md)
28 - [@system.notification (Notification模块)](js-apis-system-notification.md)
30 - [@ohos.notification (Notification模块)(系统接口)](js-apis-notification-sys.md)
34 - [Notification](capi-notification.md)
36 - [notification.h](notification_8h.md)
[all …]
H A Djs-apis-system-notification.md1 # @system.notification (通知消息)
4 > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.notification`](js-apis-notification.md)。
13 import notification from '@system.notification';
38 ## notification.show
54 let notificationObj: notification = {
56 notification.show({
62 uri: '/path/to/notification'
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta5/
H A Djs-apidiff-notification.md4notification<br>Class name: notification<br>Method or attribute name: function publishAsBundle(req…
5notification<br>Class name: notification<br>Method or attribute name: function publishAsBundle(req…
6notification<br>Class name: notification<br>Method or attribute name: function cancelAsBundle(id: …
7notification<br>Class name: notification<br>Method or attribute name: function cancelAsBundle(id: …
9notification<br>Class name: notification<br>Method or attribute name: function enableNotificationS…
10notification<br>Class name: notification<br>Method or attribute name: function isNotificationSlotE…
11notification<br>Class name: notification<br>Method or attribute name: function isNotificationSlotE…
12notification<br>Class name: notification<br>Method or attribute name: function setSyncNotification…
13notification<br>Class name: notification<br>Method or attribute name: function setSyncNotification…
14notification<br>Class name: notification<br>Method or attribute name: function getSyncNotification…
[all …]
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
H A Dreadfromparcel_fuzzer.cpp39 notification.MarshallingString(parcel); in DoSomethingInterestingWithMyAPI()
40 notification.MarshallingInt32(parcel); in DoSomethingInterestingWithMyAPI()
41 notification.MarshallingInt64(parcel); in DoSomethingInterestingWithMyAPI()
43 notification.Marshalling(parcel); in DoSomethingInterestingWithMyAPI()
49 notification.Unmarshalling(parcel); in DoSomethingInterestingWithMyAPI()
51 notification.SetEnableSound(enabled); in DoSomethingInterestingWithMyAPI()
52 notification.SetEnableLight(enabled); in DoSomethingInterestingWithMyAPI()
55 notification.SetLedLightColor(color); in DoSomethingInterestingWithMyAPI()
61 notification.SetPostTime(time); in DoSomethingInterestingWithMyAPI()
68 notification.SetRemindType(remind); in DoSomethingInterestingWithMyAPI()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-notification-kit/
H A DReadme-EN.md9 - [NotificationCommonDef](js-apis-inner-notification-notificationCommonDef.md)
10 - [NotificationContent](js-apis-inner-notification-notificationContent.md)
11 - [NotificationFlags](js-apis-inner-notification-notificationFlags.md)
12 - [NotificationRequest](js-apis-inner-notification-notificationRequest.md)
13 - [NotificationSlot](js-apis-inner-notification-notificationSlot.md)
27 - [@ohos.notification (Notification)](js-apis-notification.md)
28 - [@system.notification (Notification)](js-apis-system-notification.md)
30 - [@ohos.notification (Notification) (System API)](js-apis-notification-sys.md)
34 - [Notification](capi-notification.md)
36 - [notification.h](notification_8h.md)
[all …]
H A Djs-apis-inner-notification-notificationRequest.md3 The **NotificationRequest** module provides APIs for defining the notification request.
17 | slotType<sup>(deprecated)</sup> | [notification.SlotType](./js-apis-notification.md#slottype) …
23 … | Time when the notification is automatically cleared.<br>Data format: timestamp,<br>in milliseco…
32notification identifier. ID is preferentially used.<br>If the label is not empty when a notificati…
35 …nButton](js-apis-inner-notification-notificationActionButton.md)\> | No | Yes | Noti…
42 … | Yes | Yes | Unique ID of the notification. …
49notification sent by an app, which is used for notification deduplication. If an app publishes not…
54 Describes distributed notification options.
60 …d | boolean | No | Yes | Whether the notification is a distributed notification.…
61 …ces | Array\<string> | No | Yes | List of the devices to which the notification can be synchron…
[all …]
H A Derrorcode-notification.md55 The notification service is busy or abnormal.
77 Enable notification for the application in the notification settings.
95 1. Access the notification settings and check whether the application has the notification slot. If…
97 2. Make sure the notification slot is enabled.
115 Enable notification deletion. For details, see [NotificationRequest](./js-apis-inner-notification-n…
121 The notification does not exist.
125 This error code is reported when the notification service could not find the notification.
129 The notification has been canceled or deleted.
229 A notification dialog box is already displayed.
237 The notification pop-up window is displayed.
[all …]
H A Djs-apis-inner-notification-notificationContent.md3 The **NotificationContent** module provides APIs for defining the notification content.
11 Describes the notification contents.
27 Describes the normal text notification.
44 > The display effect depends on the device capability and notification center UI style.
61 > The display effect depends on the device capability and notification center UI style.
78 > The display effect depends on the device capability and notification center UI style.
106 Describe the notification capsule.
119 Describes the notification button.
131 Describes the notification timing information.
145 // The notification counts down from three seconds and the time is displayed in the title.
[all …]
H A Djs-apis-system-notification.md1 # @system.notification (Notification)
4 …intained since API version 7. You are advised to use [@ohos.notification](js-apis-notification.md).
13 import notification from '@system.notification';
22 … | Yes | Name of the application bundle to which the notification will be redirec…
23 … | Yes | Name of the application ability to which the notification will be redirec…
35 … | No | Action triggered when the notification is clicked. |
38 ## notification.show
42 Displays a notification.
54 let notificationObj: notification = {
56 notification.show({
[all …]
H A Djs-apis-notification.md1 # @ohos.notification (Notification)
3notification management capabilities, covering notifications, notification slots, notification sub…
15 import Notification from '@ohos.notification';
1005 Describes the normal text notification.
1018 Describes the long text notification.
1034 Describes the multi-line text notification.
1066 Describes the notification content.
1080 Describes the notification request.
1135 Describes the notification slot.
1156 Describes the notification template.
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/
H A Dchangelogs-notification.md3 ## cl.notification.1 API异常处理方式变更
18 | @ohos.notification.d.ts | @ohos.notificationManager.d.ts |
19 | @ohos.notification.d.ts | @ohos.notificationSubscribe.d.ts |
37 @ohos.notification拆分成了两个namespace,需要根据接口情况选择需要的新namespace进行适配。
41 ## cl.notification.2 接口变更
49 | @ohos.notification | notification | **function** enableNotification(bundle: BundleO…
50 | @ohos.notification | notification | **function** enableNotification(bundle: BundleO…
54 | @ohos.notification | notification | **function** enableNotificationSlot(bundle: Bun…
57 | @ohos.notification | notification | **function** enableDistributed(enable: boolean,…
58 | @ohos.notification | notification | **function** enableDistributed(enable: boolean,…
[all …]
/ohos5.0/docs/en/application-dev/notification/
H A Dtext-notification.md5 **Table 1** Basic notification content types
9 | NOTIFICATION_CONTENT_BASIC_TEXT | Normal text notification.|
10 | NOTIFICATION_CONTENT_MULTILINE | Multi-line text notification.|
14notification publishing. You specify the notification information – content, ID, slot type, and pu…
36 2. Create a **NotificationRequest** object and publish a progress notification.
56 hilog.info(DOMAIN_NUMBER, TAG, 'Succeeded in publishing notification.');
61notification, the multi-line text notification provides the **lines**, **briefText**, and **longTi…
77 // Publish the notification.
83 hilog.info(DOMAIN_NUMBER, TAG, 'Succeeded in publishing notification.');
86 3. Delete the notification.
[all …]
H A Dnotification-subscription.md7notification-kit/js-apis-inner-notification-notificationSubscriber-sys.md) object to provide callb…
11notification service process involves the notification subsystem, notification sender, and notific…
15 … can only be a system application, for example, the notification center. By default, the notificat…
24notification subscription are described as follows. For details about the APIs, see [@ohos.notific…
26 **Table 1** Major APIs for notification subscription
33 **Table 2** Callbacks for notification subscription
35 …he API, see [NotificationSubscriber](../reference/apis-notification-kit/js-apis-inner-notification
41 | onUpdate?: (data:&nbsp;NotificationSortingMap)&nbsp;=&gt;&nbsp;void | Callback for notification
44 …d | Callback for disconnecting from the notification subsystem. |
93 4. Initiate notification subscription.
[all …]
H A Dnotification-overview.md3 …lock screen, screen off, Always On Display (AOD), and notification panel based on the notification
12 - Carries or updates the application notification badge.
15 - Queries the status of the notification function of an application.
25 1. Request notification authorization.
27 2. The application publishes a notification to the notification service.
29 3. The notification is displayed in the notification center.
36 > The display effect depends on the device capability and notification center UI style.
38 Common notification styles in the Notification Kit are as follows.
41 …ext-notification.md) | ![text_notification](figures/text_notification.png) | A maximum …
44 …ess bar](./progress-bar-notification.md)| ![progress_notification](figures/progress_notification.p…
[all …]
H A Dlive-view-notification.md3notification provides real-time progress of long-duration tasks, including voice recording, screen…
9 | NOTIFICATION_CONTENT_SYSTEM_LIVE_VIEW<sup>11+</sup> | 5 | Live view notification. |
13notification publishing. You can specify the notification information – content, ID, slot type, an…
17notification-kit/js-apis-notificationManager.md#notificationmanagerpublish)(request:&nbsp;Notifica…
18notification-kit/js-apis-notificationManager.md#notificationmanagercancel)(id:&nbsp;number,&nbsp;l…
35 2. Publishes a notification.
37notification, the system live view notification provides the **typeCode**, **capsule**, **button**…
69 …update the progress, you only need to modify the progress value and publish the notification again.
100 // Subscribe to the system live view notification (button).
102 // Publish the notification.
H A DReadme-EN.md3 - [Introduction to Notification Kit](notification-overview.md)
4 - [Requesting Notification Authorization](notification-enable.md)
5 - [Managing the Notification Badge](notification-badge.md)
6 - [Managing Notification Slots](notification-slot.md)
8 - [Publishing a Text Notification](text-notification.md)
9 - [Publishing a Progress Notification](progress-bar-notification.md)
11 - [Publishing Live View Notification (for System Applications Only)](live-view-notification.md)
13 - [Adding a WantAgent Object to a Notification](notification-with-wantagent.md)
15 - [Subscribing to Notifications (for System Applications Only)](notification-subscription.md)
/ohos5.0/base/notification/distributed_notification_service/
H A Dhisysevent.yaml42 NOTIFICATION_ID: {type: INT32, desc: notification Id}
43 CONTENT_TYPE: {type: INT32, desc: notification content type}
45 USER_ID: {type: INT32, desc: userId of notification creater}
50 NOTIFICATION_ID: {type: INT32, desc: notification Id}
85 NOTIFICATION_ID: {type: INT32, desc: notification Id}
86 CONTENT_TYPE: {type: INT32, desc: notification content type}
88 USER_ID: {type: INT32, desc: userId of notification creater}
92 NOTIFICATION_ID: {type: INT32, desc: notification Id}
93 NOTIFICATION_LABEL: {type: STRING, desc: notification label}
99 NOTIFICATION_ID: {type: INT32, desc: notification Id}
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.3/
H A Dchangelogs-notification.md3 ## cl.notification.1 API Exception Handling Method Changes
18 | @ohos.notification.d.ts | @ohos.notificationManager.d.ts |
19 | @ohos.notification.d.ts | @ohos.notificationSubscribe.d.ts |
41 ## cl.notification.2 API Changes
43 The names of some event notification APIs are changed.
49 | @ohos.notification | notification | **function** enableNotification(bundle: BundleO…
50 | @ohos.notification | notification | **function** enableNotification(bundle: BundleO…
54 | @ohos.notification | notification | **function** enableNotificationSlot(bundle: Bun…
57 | @ohos.notification | notification | **function** enableDistributed(enable: boolean,…
58 | @ohos.notification | notification | **function** enableDistributed(enable: boolean,…
[all …]
/ohos5.0/docs/zh-cn/application-dev/notification/
H A DReadme-CN.md3 - [Notification Kit简介](notification-overview.md)
4 - [请求通知授权](notification-enable.md)
5 - [管理通知角标](notification-badge.md)
6 - [管理通知渠道](notification-slot.md)
8 - [发布文本类型通知](text-notification.md)
9 - [发布进度条类型通知](progress-bar-notification.md)
11 - [发布实况窗类型通知(仅对系统应用开放)](live-view-notification.md)
13 - [为通知添加行为意图](notification-with-wantagent.md)
14 - [取消通知](notification-cancel.md)
16 - [订阅通知(仅对系统应用开放)](notification-subscription.md)
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_notification.cpp37 if (notification == nullptr) { in SetNotificationByDistributedOptions()
45 if (notification->GetDeviceId().empty()) { in SetNotificationByDistributedOptions()
96 if (notification == nullptr) { in SetNotification()
101 NotificationRequest request = notification->GetNotificationRequest(); in SetNotification()
111 napi_get_boolean(env, notification->IsFloatingIcon(), &value); in SetNotification()
116 env, notification->GetBundleName().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotification()
124 napi_create_int32(env, notification->GetRecvUserId(), &value); in SetNotification()
128 napi_create_int32(env, notification->GetInstanceKey(), &value); in SetNotification()
132 napi_create_int32(env, notification->GetPid(), &value); in SetNotification()
144 napi_get_boolean(env, notification->IsRemoveAllowed(), &value); in SetNotification()
[all …]
/ohos5.0/base/update/update_app/feature/ota/src/main/ets/notify/
H A DNotificationHelper.ets16 import notification from '@ohos.notificationManager';
95 slotType: notification.SlotType.SERVICE_INFORMATION,
141 slotType: notification.SlotType.SERVICE_INFORMATION,
165 slotType: notification.SlotType.SERVICE_INFORMATION
167 await notification.publish(request).then(() => {
190 slotType: notification.SlotType.SERVICE_INFORMATION
192 await notification.publish(request).then(() => {
203 await notification.cancelAll().then(() => {
204 this.logInfo('cancelAll notification success');
209 * 检查notification服务是否启动
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_slot_filter.cpp34 record->notification->SetEnableLight(true); in OnPublish()
35 record->notification->SetLedLightColor(record->slot->GetLedLightColor()); in OnPublish()
37 record->notification->SetEnableLight(false); in OnPublish()
41 record->notification->SetEnableVibration(true); in OnPublish()
42 record->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish()
44 record->notification->SetEnableVibration(false); in OnPublish()
49 record->notification->SetEnableSound(true); in OnPublish()
50 record->notification->SetSound(record->slot->GetSound()); in OnPublish()
52 record->notification->SetEnableSound(false); in OnPublish()

12345678910>>...30