• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the DFX Subsystem
2
3The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.hiAppEvent | hiAppEvent            | function clearData(): void;                                                         | Added|
10| ohos.hiAppEvent | hiAppEvent            | function removeWatcher(watcher: Watcher): void;                                     | Added|
11| ohos.hiAppEvent | hiAppEvent            | function addWatcher(watcher: Watcher): AppEventPackageHolder;                       | Added|
12| ohos.hiAppEvent | Watcher               | onTrigger?: (curRow: number, curSize:number, holder:AppEventPackageHolder) => void; | Added|
13| ohos.hiAppEvent | Watcher               | appEventFilters?: AppEventFilter[];                                                 | Added|
14| ohos.hiAppEvent | Watcher               | triggerCondition?: TriggerCondition;                                                | Added|
15| ohos.hiAppEvent | Watcher               | name: string;                                                                       | Added|
16| ohos.hiAppEvent | AppEventFilter        | eventTypes?: EventType[];                                                           | Added|
17| ohos.hiAppEvent | AppEventFilter        | domain: string;                                                                     | Added|
18| ohos.hiAppEvent | TriggerCondition      | timeOut?: number;                                                                   | Added|
19| ohos.hiAppEvent | TriggerCondition      | size?: number;                                                                      | Added|
20| ohos.hiAppEvent | TriggerCondition      | row?: number;                                                                       | Added|
21| ohos.hiAppEvent | AppEventPackageHolder | takeNext(): AppEventPackage;                                                        | Added|
22| ohos.hiAppEvent | AppEventPackageHolder | setSize(size: number): void;                                                        | Added|
23| ohos.hiAppEvent | AppEventPackageHolder | constructor(watcherName: string);                                                   | Added|
24| ohos.hiAppEvent | AppEventPackage       | data: string[];                                                                     | Added|
25| ohos.hiAppEvent | AppEventPackage       | size: number;                                                                       | Added|
26| ohos.hiAppEvent | AppEventPackage       | row: number;                                                                        | Added|
27| ohos.hiAppEvent | AppEventPackage       | packageId: number;                                                                  | Added|
28| ohos.hiAppEvent | AppEventInfo          | params: object;                                                                     | Added|
29| ohos.hiAppEvent | AppEventInfo          | eventType: EventType;                                                               | Added|
30| ohos.hiAppEvent | AppEventInfo          | name: string;                                                                       | Added|
31| ohos.hiAppEvent | AppEventInfo          | domain: string;                                                                     | Added|
32| ohos.hiAppEvent | hiAppEvent | function write(eventName: string, eventType: EventType, keyValues: object): Promise\<void>;<br>function write(eventName: string, eventType: EventType, keyValues: object, callback: AsyncCallback\<void>): void;<br>function write(info: AppEventInfo): Promise\<void>;<br>function write(info: AppEventInfo, callback: AsyncCallback\<void>): void; | Deprecated|
33