harmony 鸿蒙JS API Changes of the DFX Subsystem

  • 2023-02-03
  • 浏览 (350)

JS API Changes of the DFX Subsystem

The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.hiAppEvent hiAppEvent function clearData(): void; Added
ohos.hiAppEvent hiAppEvent function removeWatcher(watcher: Watcher): void; Added
ohos.hiAppEvent hiAppEvent function addWatcher(watcher: Watcher): AppEventPackageHolder; Added
ohos.hiAppEvent Watcher onTrigger?: (curRow: number, curSize:number, holder:AppEventPackageHolder) => void; Added
ohos.hiAppEvent Watcher appEventFilters?: AppEventFilter[]; Added
ohos.hiAppEvent Watcher triggerCondition?: TriggerCondition; Added
ohos.hiAppEvent Watcher name: string; Added
ohos.hiAppEvent AppEventFilter eventTypes?: EventType[]; Added
ohos.hiAppEvent AppEventFilter domain: string; Added
ohos.hiAppEvent TriggerCondition timeOut?: number; Added
ohos.hiAppEvent TriggerCondition size?: number; Added
ohos.hiAppEvent TriggerCondition row?: number; Added
ohos.hiAppEvent AppEventPackageHolder takeNext(): AppEventPackage; Added
ohos.hiAppEvent AppEventPackageHolder setSize(size: number): void; Added
ohos.hiAppEvent AppEventPackageHolder constructor(watcherName: string); Added
ohos.hiAppEvent AppEventPackage data: string[]; Added
ohos.hiAppEvent AppEventPackage size: number; Added
ohos.hiAppEvent AppEventPackage row: number; Added
ohos.hiAppEvent AppEventPackage packageId: number; Added
ohos.hiAppEvent AppEventInfo params: object; Added
ohos.hiAppEvent AppEventInfo eventType: EventType; Added
ohos.hiAppEvent AppEventInfo name: string; Added
ohos.hiAppEvent AppEventInfo domain: string; Added
ohos.hiAppEvent hiAppEvent function write(eventName: string, eventType: EventType, keyValues: object): Promise<void>;
function write(eventName: string, eventType: EventType, keyValues: object, callback: AsyncCallback<void>): void;
function write(info: AppEventInfo): Promise<void>;
function write(info: AppEventInfo, callback: AsyncCallback<void>): void;
Deprecated

你可能感兴趣的鸿蒙文章

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 Distributed Data Management Subsystem

0  赞