Lines Matching refs:Notification
1 # @ohos.notification (Notification模块)
15 import Notification from '@ohos.notification';
18 ## Notification.publish
24 **系统能力**:SystemCapability.Notification.Notification
51 contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
59 Notification.publish(notificationRequest, publishCallback);
62 ## Notification.publish
68 **系统能力**:SystemCapability.Notification.Notification
92 contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
100 Notification.publish(notificationRequest).then(() => {
107 ## Notification.cancel
113 **系统能力**:SystemCapability.Notification.Notification
136 Notification.cancel(0, "label", cancelCallback);
141 ## Notification.cancel
147 **系统能力**:SystemCapability.Notification.Notification
167 Notification.cancel(0).then(() => {
176 ## Notification.cancel
182 **系统能力**:SystemCapability.Notification.Notification
204 Notification.cancel(0, cancelCallback);
209 ## Notification.cancelAll
215 **系统能力**:SystemCapability.Notification.Notification
236 Notification.cancelAll(cancelAllCallback);
239 ## Notification.cancelAll
245 **系统能力**:SystemCapability.Notification.Notification
258 Notification.cancelAll().then(() => {
265 ## Notification.addSlot
271 **系统能力**:SystemCapability.Notification.Notification
293 Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack);
296 ## Notification.addSlot
302 **系统能力**:SystemCapability.Notification.Notification
321 Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION).then(() => {
328 ## Notification.getSlot
334 **系统能力**:SystemCapability.Notification.Notification
356 let slotType: Notification.SlotType = Notification.SlotType.SOCIAL_COMMUNICATION;
357 Notification.getSlot(slotType, getSlotCallback);
360 ## Notification.getSlot
366 **系统能力**:SystemCapability.Notification.Notification
385 let slotType: Notification.SlotType = Notification.SlotType.SOCIAL_COMMUNICATION;
386 Notification.getSlot(slotType).then((data) => {
393 ## Notification.getSlots
399 **系统能力**:SystemCapability.Notification.Notification
420 Notification.getSlots(getSlotsCallback);
423 ## Notification.getSlots
429 **系统能力**:SystemCapability.Notification.Notification
442 Notification.getSlots().then((data) => {
449 ## Notification.removeSlot
455 **系统能力**:SystemCapability.Notification.Notification
477 let slotType: Notification.SlotType = Notification.SlotType.SOCIAL_COMMUNICATION;
478 Notification.removeSlot(slotType, removeSlotCallback);
481 ## Notification.removeSlot
487 **系统能力**:SystemCapability.Notification.Notification
506 let slotType: Notification.SlotType = Notification.SlotType.SOCIAL_COMMUNICATION;
507 Notification.removeSlot(slotType).then(() => {
514 ## Notification.removeAllSlots
520 **系统能力**:SystemCapability.Notification.Notification
540 Notification.removeAllSlots(removeAllCallBack);
543 ## Notification.removeAllSlots
549 **系统能力**:SystemCapability.Notification.Notification
562 Notification.removeAllSlots().then(() => {
569 ## Notification.getActiveNotificationCount
575 **系统能力**:SystemCapability.Notification.Notification
596 Notification.getActiveNotificationCount(getActiveNotificationCountCallback);
599 ## Notification.getActiveNotificationCount
605 **系统能力**:SystemCapability.Notification.Notification
618 Notification.getActiveNotificationCount().then((data: number) => {
625 ## Notification.getActiveNotifications
631 **系统能力**:SystemCapability.Notification.Notification
653 Notification.getActiveNotifications(getActiveNotificationsCallback);
656 ## Notification.getActiveNotifications
662 **系统能力**:SystemCapability.Notification.Notification
676 Notification.getActiveNotifications().then((data: NotificationManager.NotificationRequest[]) => {
683 ## Notification.cancelGroup<sup>8+</sup>
689 **系统能力**:SystemCapability.Notification.Notification
713 Notification.cancelGroup(groupName, cancelGroupCallback);
716 ## Notification.cancelGroup<sup>8+</sup>
722 **系统能力**:SystemCapability.Notification.Notification
742 Notification.cancelGroup(groupName).then(() => {
749 ## Notification.isSupportTemplate<sup>8+</sup>
755 **系统能力**:SystemCapability.Notification.Notification
778 Notification.isSupportTemplate(templateName, isSupportTemplateCallback);
781 ## Notification.isSupportTemplate<sup>8+</sup>
787 **系统能力**:SystemCapability.Notification.Notification
807 Notification.isSupportTemplate(templateName).then((data: boolean) => {
814 ## Notification.requestEnableNotification<sup>8+</sup>
820 **系统能力**:SystemCapability.Notification.Notification
841 Notification.requestEnableNotification(requestEnableNotificationCallback);
844 ## Notification.requestEnableNotification<sup>8+</sup>
850 **系统能力**:SystemCapability.Notification.Notification
863 Notification.requestEnableNotification().then(() => {
870 ## Notification.isDistributedEnabled<sup>8+</sup>
876 **系统能力**:SystemCapability.Notification.Notification
897 Notification.isDistributedEnabled(isDistributedEnabledCallback);
900 ## Notification.isDistributedEnabled<sup>8+</sup>
906 **系统能力**:SystemCapability.Notification.Notification
919 Notification.isDistributedEnabled().then((data: boolean) => {
928 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
940 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
953 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
965 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
978 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
993 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1007 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1020 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1036 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1052 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1068 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1082 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1124 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1137 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1158 **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
1170 **系统能力**:SystemCapability.Notification.Notification