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

2022-12-22 浏览 (714)

事件通知子系统JS API变更

OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,事件通知子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
notificationUserInputNotificationUserInputinputKey: string;新增
notificationTemplateNotificationTemplatedata: {[key: string]: Object};新增
notificationTemplateNotificationTemplatename: string;新增
notificationRequestDistributedOptionssupportOperateDevices?: Array<string>;新增
notificationRequestDistributedOptionssupportDisplayDevices?: Array<string>;新增
notificationRequestDistributedOptionsisDistributed?: boolean;新增
notificationRequestNotificationRequestreadonly notificationFlags?: NotificationFlags;新增
notificationRequestNotificationRequestdistributedOption?: DistributedOptions;新增
notificationRequestNotificationRequesttemplate?: NotificationTemplate;新增
notificationRequestNotificationRequestreadonly creatorUserId?: number;新增
notificationRequestNotificationRequestgroupName?: string;新增
notificationActionButtonNotificationActionButtonuserInput?: NotificationUserInput;新增
ohos.notificationnotificationisDistributedEnabled(callback: AsyncCallback<boolean>): void;
isDistributedEnabled(): Promise<boolean>;
新增
ohos.notificationnotificationrequestEnableNotification(callback: AsyncCallback<void>): void;
requestEnableNotification(): Promise<void>;
新增
ohos.notificationnotificationisSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void;
isSupportTemplate(templateName: string): Promise<boolean>;
新增
ohos.notificationnotificationcancelGroup(groupName: string, callback: AsyncCallback<void>): void;
cancelGroup(groupName: string): Promise<void>;
新增
ohos.events.emitterEventPriorityIDLE新增
ohos.events.emitterEventPriorityLOW新增
ohos.events.emitterEventPriorityHIGH新增
ohos.events.emitterEventPriorityIMMEDIATE = 0新增
ohos.events.emitterInnerEventpriority?: EventPriority;新增
ohos.events.emitterInnerEventeventId: number;新增
ohos.events.emitterEventDatadata?: {[key: string]: any};新增
ohos.events.emitteremitteremit(event: InnerEvent, data?: EventData): void;新增
ohos.events.emitteremitteroff(eventId: number): void;新增
ohos.events.emitteremitteronce(event: InnerEvent, callback: Callback<EventData>): void;新增
ohos.events.emitteremitteron(event: InnerEvent, callback: Callback<EventData>): void;新增
ohos.commonEventSupportCOMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN"新增
ohos.commonEventSupportCOMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED"新增

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙无障碍子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

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