harmony 鸿蒙Common Events of the Notification Service

  • 2023-06-24
  • 浏览 (445)

Common Events of the Notification Service

This document lists the common system events provided by the notification service to applications. Applications can use APIs to subscribe to common system events.

COMMON_EVENT_SLOT_CHANGE

Indicates that the notification slot or notification switch settings have changed.

  • Value: “usual.event.SLOT_CHANGE”
  • Required subscriber permissions: ohos.permission.NOTIFICATION_CONTROLLER

When the notification slot settings (including the switch) change or the notification feature is enabled or disabled, the notification service is triggered to publish this event.

APIs related to this event: setSlotByBundle, setNotificationEnableSlot, and setNotificationEnable. They are system APIs and are typically called by notification setting applications. For details, see API Reference.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Common Events

harmony 鸿蒙Common Events of the Ability Subsystem

harmony 鸿蒙Common Events of the Account Subsystem

harmony 鸿蒙Common Events of the Bundle Management Subsystem

harmony 鸿蒙Common Events of the File Management Subsystem

harmony 鸿蒙Common Events of the Language Subsystem

harmony 鸿蒙Common Events of the SMS Application

harmony 鸿蒙Common Events of the Network Management Subsystem

harmony 鸿蒙Common Events of the NFC Subsystem

harmony 鸿蒙Common Events of the Power Management Subsystem

0  赞