harmony(鸿蒙)DFX子系统JS API变更

2022-08-09 浏览 (917)

DFX子系统JS API变更

OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,DFX子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.hiSysEventhiSysEventquery(queryArg: QueryArg, rules: QueryRule[], querier: Querier): number;新增
ohos.hiSysEventhiSysEventremoveWatcher(wathcer: Watcher): number;新增
ohos.hiSysEventhiSysEventaddWatcher(watcher: Watcher): number;新增
ohos.hiSysEventQuerieronComplete: (reason: number, total: number) => void;新增
ohos.hiSysEventQuerieronQuery: (infos: SysEventInfo[], seqs: number[]) => void;新增
ohos.hiSysEventQueryRulenames: string[];新增
ohos.hiSysEventQueryRuledomain: string;新增
ohos.hiSysEventQueryArgmaxEvents: number;新增
ohos.hiSysEventQueryArgendTime: number;新增
ohos.hiSysEventQueryArgbeginTime: number;新增
ohos.hiSysEventWatcheronServiceDied: () => void;新增
ohos.hiSysEventWatcheronEvent: (info: SysEventInfo) => void;新增
ohos.hiSysEventWatcherrules: WatchRule[];新增
ohos.hiSysEventWatchRuleruleType: RuleType;新增
ohos.hiSysEventWatchRuletag: string;新增
ohos.hiSysEventWatchRulename: string;新增
ohos.hiSysEventWatchRuledomain: string;新增
ohos.hiSysEventRuleTypeREGULAR = 3新增
ohos.hiSysEventRuleTypePREFIX = 2新增
ohos.hiSysEventRuleTypeWHOLE_WORD = 1新增
ohos.hiSysEventhiSysEventwrite(info: SysEventInfo): Promise<void>;
write(info: SysEventInfo, callback: AsyncCallback<void>): void;
新增
ohos.hiSysEventSysEventInfoparams: object;新增
ohos.hiSysEventSysEventInfoeventType: EventType;新增
ohos.hiSysEventSysEventInfoname: string;新增
ohos.hiSysEventSysEventInfodomain: string;新增
ohos.hiSysEventEventTypeBEHAVIOR = 4新增
ohos.hiSysEventEventTypeSECURITY = 3新增
ohos.hiSysEventEventTypeSTATISTIC = 2新增
ohos.hiSysEventEventTypeFAULT = 1新增

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)OpenHarmony启用应用沙箱机制-适配指导

harmony(鸿蒙)3.2 beta2相对3.2 beta1变更详细说明

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/b7bd908db4764a04954c6dc3a0e7b866