harmony 鸿蒙JS API Changes of the Resource Scheduler Subsystem

  • 2023-02-03
  • 浏览 (514)

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 鸿蒙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 Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

0  赞