• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# DFX子系统JS API变更
2
3OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,DFX子系统的API变更如下:
4
5## 接口变更
6
7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
8|---|---|---|---|
9| ohos.hiSysEvent | hiSysEvent | query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): number; | 新增 |
10| ohos.hiSysEvent | hiSysEvent | removeWatcher(wathcer: Watcher): number; | 新增 |
11| ohos.hiSysEvent | hiSysEvent | addWatcher(watcher: Watcher): number; | 新增 |
12| ohos.hiSysEvent | Querier | onComplete: (reason: number, total: number) => void; | 新增 |
13| ohos.hiSysEvent | Querier | onQuery: (infos: SysEventInfo[], seqs: number[]) => void; | 新增 |
14| ohos.hiSysEvent | QueryRule | names: string[]; | 新增 |
15| ohos.hiSysEvent | QueryRule | domain: string; | 新增 |
16| ohos.hiSysEvent | QueryArg | maxEvents: number; | 新增 |
17| ohos.hiSysEvent | QueryArg | endTime: number; | 新增 |
18| ohos.hiSysEvent | QueryArg | beginTime: number; | 新增 |
19| ohos.hiSysEvent | Watcher | onServiceDied: () => void; | 新增 |
20| ohos.hiSysEvent | Watcher | onEvent: (info: SysEventInfo) => void; | 新增 |
21| ohos.hiSysEvent | Watcher | rules: WatchRule[]; | 新增 |
22| ohos.hiSysEvent | WatchRule | ruleType: RuleType; | 新增 |
23| ohos.hiSysEvent | WatchRule | tag: string; | 新增 |
24| ohos.hiSysEvent | WatchRule | name: string; | 新增 |
25| ohos.hiSysEvent | WatchRule | domain: string; | 新增 |
26| ohos.hiSysEvent | RuleType | REGULAR = 3 | 新增 |
27| ohos.hiSysEvent | RuleType | PREFIX = 2 | 新增 |
28| ohos.hiSysEvent | RuleType | WHOLE_WORD = 1 | 新增 |
29| ohos.hiSysEvent | hiSysEvent | write(info: SysEventInfo): Promise\<void>;<br>write(info: SysEventInfo, callback: AsyncCallback\<void>): void; | 新增 |
30| ohos.hiSysEvent | SysEventInfo | params: object; | 新增 |
31| ohos.hiSysEvent | SysEventInfo | eventType: EventType; | 新增 |
32| ohos.hiSysEvent | SysEventInfo | name: string; | 新增 |
33| ohos.hiSysEvent | SysEventInfo | domain: string; | 新增 |
34| ohos.hiSysEvent | EventType | BEHAVIOR = 4 | 新增 |
35| ohos.hiSysEvent | EventType | SECURITY = 3 | 新增 |
36| ohos.hiSysEvent | EventType | STATISTIC = 2 | 新增 |
37| ohos.hiSysEvent | EventType | FAULT = 1 | 新增 |