harmony(鸿蒙)JS API Changes of the Resource Scheduler Subsystem

  • 2022-10-28
  • 浏览 (468)

JS API Changes of the Resource Scheduler Subsystem

The table below lists the APIs changes of the resource scheduler subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.bundleState bundleState queryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void;
queryAppNotificationNumber(begin: number, end: number): Promise<Array<BundleActiveEventState>>;
Added
ohos.bundleState bundleState queryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void;
queryBundleActiveEventStates(begin: number, end: number): Promise<Array<BundleActiveEventState>>;
Added
ohos.bundleState bundleState unRegisterGroupCallBack(callback: AsyncCallback<void>): void;
unRegisterGroupCallBack(): Promise<void>;
Added
ohos.bundleState bundleState registerGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>, callback: AsyncCallback<void>): void;
registerGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>): Promise<void>;
Added
ohos.bundleState bundleState setBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback<void>): void;
setBundleGroup(bundleName: string, newGroup: GroupType): Promise<void>;
Added
ohos.bundleState GroupType ACTIVE_GROUP_NEVER = 60 Added
ohos.bundleState GroupType ACTIVE_GROUP_LIMIT = 50 Added
ohos.bundleState GroupType ACTIVE_GROUP_RARE = 40 Added
ohos.bundleState GroupType ACTIVE_GROUP_FIXED = 30 Added
ohos.bundleState GroupType ACTIVE_GROUP_DAILY = 20 Added
ohos.bundleState GroupType ACTIVE_GROUP_ALIVE = 10 Added
ohos.bundleState BundleActiveGroupCallbackInfo bundleName: string; Added
ohos.bundleState BundleActiveGroupCallbackInfo changeReason: number; Added
ohos.bundleState BundleActiveGroupCallbackInfo userId: number; Added
ohos.bundleState BundleActiveGroupCallbackInfo appUsageNewGroup: number; Added
ohos.bundleState BundleActiveGroupCallbackInfo appUsageOldGroup: number; Added
ohos.bundleState BundleActiveEventState count: number; Added
ohos.bundleState BundleActiveEventState eventId: number; Added
ohos.bundleState BundleActiveEventState name: string; Added

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Adaptation Guide for the Application Sandbox

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)

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 Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

0  赞