openharmony 鸿蒙 js-apidiff-event-and-notification

2023-02-03 浏览 (685)

JS API Changes of the Common Event and Notification Framework

The table below lists the APIs changes of the common event and notification framework in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
notificationUserInputNotificationUserInputinputKey: string;Added
notificationTemplateNotificationTemplatedata: {[key: string]: Object};Added
notificationTemplateNotificationTemplatename: string;Added
notificationRequestDistributedOptionssupportOperateDevices?: Array<string>;Added
notificationRequestDistributedOptionssupportDisplayDevices?: Array<string>;Added
notificationRequestDistributedOptionsisDistributed?: boolean;Added
notificationRequestNotificationRequestreadonly notificationFlags?: NotificationFlags;Added
notificationRequestNotificationRequestdistributedOption?: DistributedOptions;Added
notificationRequestNotificationRequesttemplate?: NotificationTemplate;Added
notificationRequestNotificationRequestreadonly creatorUserId?: number;Added
notificationRequestNotificationRequestgroupName?: string;Added
notificationActionButtonNotificationActionButtonuserInput?: NotificationUserInput;Added
ohos.notificationnotificationisDistributedEnabled(callback: AsyncCallback<boolean>): void;
isDistributedEnabled(): Promise<boolean>;
Added
ohos.notificationnotificationrequestEnableNotification(callback: AsyncCallback<void>): void;
requestEnableNotification(): Promise<void>;
Added
ohos.notificationnotificationisSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void;
isSupportTemplate(templateName: string): Promise<boolean>;
Added
ohos.notificationnotificationcancelGroup(groupName: string, callback: AsyncCallback<void>): void;
cancelGroup(groupName: string): Promise<void>;
Added
ohos.events.emitterEventPriorityIDLEAdded
ohos.events.emitterEventPriorityLOWAdded
ohos.events.emitterEventPriorityHIGHAdded
ohos.events.emitterEventPriorityIMMEDIATE = 0Added
ohos.events.emitterInnerEventpriority?: EventPriority;Added
ohos.events.emitterInnerEventeventId: number;Added
ohos.events.emitterEventDatadata?: {[key: string]: any};Added
ohos.events.emitteremitteremit(event: InnerEvent, data?: EventData): void;Added
ohos.events.emitteremitteroff(eventId: number): void;Added
ohos.events.emitteremitteronce(event: InnerEvent, callback: Callback<EventData>): void;Added
ohos.events.emitteremitteron(event: InnerEvent, callback: Callback<EventData>): void;Added
ohos.commonEventSupportCOMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN"Added
ohos.commonEventSupportCOMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED"Added

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Power Management Subsystem

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/2c4ae14191b74ff0814bb9b6a433f772