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.