harmony 鸿蒙Common Events of the Notification Service
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 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
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦