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

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

JS API Changes of the Resource Scheduler Subsystem

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

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.backgroundTaskManager EfficiencyResourcesRequest reason: string; Added
ohos.backgroundTaskManager EfficiencyResourcesRequest isProcess?: boolean; Added
ohos.backgroundTaskManager EfficiencyResourcesRequest isPersist?: boolean; Added
ohos.backgroundTaskManager EfficiencyResourcesRequest timeOut: number; Added
ohos.backgroundTaskManager EfficiencyResourcesRequest isApply: boolean; Added
ohos.backgroundTaskManager EfficiencyResourcesRequest resourceTypes: number; Added
ohos.backgroundTaskManager ResourceType AUDIO = 1 << 6 Added
ohos.backgroundTaskManager ResourceType GPS = 1 << 5 Added
ohos.backgroundTaskManager ResourceType BLUETOOTH = 1 << 4 Added
ohos.backgroundTaskManager ResourceType WORK_SCHEDULER = 1 << 3 Added
ohos.backgroundTaskManager ResourceType TIMER = 1 << 2 Added
ohos.backgroundTaskManager ResourceType COMMON_EVENT = 1 << 1 Added
ohos.backgroundTaskManager ResourceType CPU = 1 Added
ohos.backgroundTaskManager backgroundTaskManager resetAllEfficiencyResources(): void; Added
ohos.backgroundTaskManager backgroundTaskManager applyEfficiencyResources(request: EfficiencyResourcesRequest): boolean; Added
ohos.workScheduler WorkInfo parameters?: {[key: string]: any}; Added

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

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

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 Power Management Subsystem

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  赞