• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Resource Scheduler Subsystem
2
3The table below lists the APIs changes of the resource scheduler subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.bundleState | bundleState | queryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback\<Array\<BundleActiveEventState>>): void;<br>queryAppNotificationNumber(begin: number, end: number): Promise\<Array\<BundleActiveEventState>>; | Added|
10| ohos.bundleState | bundleState | queryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback\<Array\<BundleActiveEventState>>): void;<br>queryBundleActiveEventStates(begin: number, end: number): Promise\<Array\<BundleActiveEventState>>; | Added|
11| ohos.bundleState | bundleState | unRegisterGroupCallBack(callback: AsyncCallback\<void>): void;<br>unRegisterGroupCallBack(): Promise\<void>; | Added|
12| ohos.bundleState | bundleState | registerGroupCallBack(callback: Callback\<BundleActiveGroupCallbackInfo>, callback: AsyncCallback\<void>): void;<br>registerGroupCallBack(callback: Callback\<BundleActiveGroupCallbackInfo>): Promise\<void>; | Added|
13| ohos.bundleState | bundleState | setBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback\<void>): void;<br>setBundleGroup(bundleName: string, newGroup: GroupType): Promise\<void>; | Added|
14| ohos.bundleState | GroupType | ACTIVE_GROUP_NEVER = 60 | Added|
15| ohos.bundleState | GroupType | ACTIVE_GROUP_LIMIT = 50 | Added|
16| ohos.bundleState | GroupType | ACTIVE_GROUP_RARE = 40 | Added|
17| ohos.bundleState | GroupType | ACTIVE_GROUP_FIXED = 30 | Added|
18| ohos.bundleState | GroupType | ACTIVE_GROUP_DAILY = 20 | Added|
19| ohos.bundleState | GroupType | ACTIVE_GROUP_ALIVE = 10 | Added|
20| ohos.bundleState | BundleActiveGroupCallbackInfo | bundleName: string; | Added|
21| ohos.bundleState | BundleActiveGroupCallbackInfo | changeReason: number; | Added|
22| ohos.bundleState | BundleActiveGroupCallbackInfo | userId: number; | Added|
23| ohos.bundleState | BundleActiveGroupCallbackInfo | appUsageNewGroup: number; | Added|
24| ohos.bundleState | BundleActiveGroupCallbackInfo | appUsageOldGroup: number; | Added|
25| ohos.bundleState | BundleActiveEventState | count: number; | Added|
26| ohos.bundleState | BundleActiveEventState | eventId: number; | Added|
27| ohos.bundleState | BundleActiveEventState | name: string; | Added|
28