harmony(鸿蒙)资源调度子系统JS API变更

2022-08-09 浏览 (703)

资源调度子系统JS API变更

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

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.bundleStatebundleStatequeryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void;
queryAppNotificationNumber(begin: number, end: number): Promise<Array<BundleActiveEventState>>;
新增
ohos.bundleStatebundleStatequeryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void;
queryBundleActiveEventStates(begin: number, end: number): Promise<Array<BundleActiveEventState>>;
新增
ohos.bundleStatebundleStateunRegisterGroupCallBack(callback: AsyncCallback<void>): void;
unRegisterGroupCallBack(): Promise<void>;
新增
ohos.bundleStatebundleStateregisterGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>, callback: AsyncCallback<void>): void;
registerGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>): Promise<void>;
新增
ohos.bundleStatebundleStatesetBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback<void>): void;
setBundleGroup(bundleName: string, newGroup: GroupType): Promise<void>;
新增
ohos.bundleStateGroupTypeACTIVE_GROUP_NEVER = 60新增
ohos.bundleStateGroupTypeACTIVE_GROUP_LIMIT = 50新增
ohos.bundleStateGroupTypeACTIVE_GROUP_RARE = 40新增
ohos.bundleStateGroupTypeACTIVE_GROUP_FIXED = 30新增
ohos.bundleStateGroupTypeACTIVE_GROUP_DAILY = 20新增
ohos.bundleStateGroupTypeACTIVE_GROUP_ALIVE = 10新增
ohos.bundleStateBundleActiveGroupCallbackInfobundleName: string;新增
ohos.bundleStateBundleActiveGroupCallbackInfochangeReason: number;新增
ohos.bundleStateBundleActiveGroupCallbackInfouserId: number;新增
ohos.bundleStateBundleActiveGroupCallbackInfoappUsageNewGroup: number;新增
ohos.bundleStateBundleActiveGroupCallbackInfoappUsageOldGroup: number;新增
ohos.bundleStateBundleActiveEventStatecount: number;新增
ohos.bundleStateBundleActiveEventStateeventId: number;新增
ohos.bundleStateBundleActiveEventStatename: string;新增

你可能感兴趣的鸿蒙文章

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(鸿蒙)DFX子系统JS API变更

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/3f979c9c570e4caa8031f32d4db24e65