ohos.common_event_subscriber
Note:
Currently in the beta phase.
This module represents the subscriber of common events.
Import Module
import kit.BasicServicesKit.*
Usage Instructions
API sample code usage instructions:
- If the first line of sample code contains a "// index.cj" comment, it indicates that the sample can be compiled and run in the "index.cj" file of the Cangjie template project.
- If the sample requires obtaining the Context application context, it needs to be configured in the "main_ability.cj" file of the Cangjie template project.
For the aforementioned sample projects and configuration templates, please refer to Cangjie Sample Code Instructions.
class CommonEventSubscriber
public class CommonEventSubscriber {}
Function: Describes the subscriber of common events.
System Capability: SystemCapability.Notification.CommonEvent
Since: 22