# 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 | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | notificationUserInput | NotificationUserInput | inputKey: string; | Added| | notificationTemplate | NotificationTemplate | data: {[key: string]: Object}; | Added| | notificationTemplate | NotificationTemplate | name: string; | Added| | notificationRequest | DistributedOptions | supportOperateDevices?: Array\; | Added| | notificationRequest | DistributedOptions | supportDisplayDevices?: Array\; | Added| | notificationRequest | DistributedOptions | isDistributed?: boolean; | Added| | notificationRequest | NotificationRequest | readonly notificationFlags?: NotificationFlags; | Added| | notificationRequest | NotificationRequest | distributedOption?: DistributedOptions; | Added| | notificationRequest | NotificationRequest | template?: NotificationTemplate; | Added| | notificationRequest | NotificationRequest | readonly creatorUserId?: number; | Added| | notificationRequest | NotificationRequest | groupName?: string; | Added| | notificationActionButton | NotificationActionButton | userInput?: NotificationUserInput; | Added| | ohos.notification | notification | isDistributedEnabled(callback: AsyncCallback\): void;
isDistributedEnabled(): Promise\; | Added| | ohos.notification | notification | requestEnableNotification(callback: AsyncCallback\): void;
requestEnableNotification(): Promise\; | Added| | ohos.notification | notification | isSupportTemplate(templateName: string, callback: AsyncCallback\): void;
isSupportTemplate(templateName: string): Promise\; | Added| | ohos.notification | notification | cancelGroup(groupName: string, callback: AsyncCallback\): void;
cancelGroup(groupName: string): Promise\; | Added| | ohos.events.emitter | EventPriority | IDLE | Added| | ohos.events.emitter | EventPriority | LOW | Added| | ohos.events.emitter | EventPriority | HIGH | Added| | ohos.events.emitter | EventPriority | IMMEDIATE = 0 | Added| | ohos.events.emitter | InnerEvent | priority?: EventPriority; | Added| | ohos.events.emitter | InnerEvent | eventId: number; | Added| | ohos.events.emitter | EventData | data?: {[key: string]: any}; | Added| | ohos.events.emitter | emitter | emit(event: InnerEvent, data?: EventData): void; | Added| | ohos.events.emitter | emitter | off(eventId: number): void; | Added| | ohos.events.emitter | emitter | once(event: InnerEvent, callback: Callback\): void; | Added| | ohos.events.emitter | emitter | on(event: InnerEvent, callback: Callback\): void; | Added| | ohos.commonEvent | Support | COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN" | Added| | ohos.commonEvent | Support | COMMON_EVENT_THERMAL_LEVEL_CHANGED = "usual.event.THERMAL_LEVEL_CHANGED" | Added|