• 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 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.backgroundTaskManager | EfficiencyResourcesRequest | reason: string;                                                                  | Added|
10| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isProcess?: boolean;                                                             | Added|
11| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isPersist?: boolean;                                                             | Added|
12| ohos.backgroundTaskManager | EfficiencyResourcesRequest | timeOut: number;                                                                 | Added|
13| ohos.backgroundTaskManager | EfficiencyResourcesRequest | isApply: boolean;                                                                | Added|
14| ohos.backgroundTaskManager | EfficiencyResourcesRequest | resourceTypes: number;                                                           | Added|
15| ohos.backgroundTaskManager | ResourceType               | AUDIO = 1 << 6                                                                   | Added|
16| ohos.backgroundTaskManager | ResourceType               | GPS = 1 << 5                                                                     | Added|
17| ohos.backgroundTaskManager | ResourceType               | BLUETOOTH = 1 << 4                                                               | Added|
18| ohos.backgroundTaskManager | ResourceType               | WORK_SCHEDULER = 1 << 3                                                          | Added|
19| ohos.backgroundTaskManager | ResourceType               | TIMER = 1 << 2                                                                   | Added|
20| ohos.backgroundTaskManager | ResourceType               | COMMON_EVENT = 1 << 1                                                            | Added|
21| ohos.backgroundTaskManager | ResourceType               | CPU = 1                                                                          | Added|
22| ohos.backgroundTaskManager | backgroundTaskManager      | resetAllEfficiencyResources(): void;                                    | Added|
23| ohos.backgroundTaskManager | backgroundTaskManager      | applyEfficiencyResources(request: EfficiencyResourcesRequest): boolean; | Added|
24| ohos.workScheduler         | WorkInfo                   | parameters?: {[key: string]: any};                                               | Added|
25