harmony(鸿蒙)JS API Changes of the Power Management Subsystem

2022-10-28 浏览 (723)

JS API Changes of the Power Management Subsystem

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

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
system.batteryBatterystatic getStatus(options?: GetStatusOptions): void;Deprecated
system.batteryGetStatusOptionscomplete?: () => void;Deprecated
system.batteryGetStatusOptionsfail?: (data: string, code: number) => void;Deprecated
system.batteryGetStatusOptionssuccess?: (data: BatteryResponse) => void;Deprecated
system.batteryBatteryResponselevel: number;Deprecated
system.batteryBatteryResponsecharging: boolean;Deprecated
system.brightnessBrightnessstatic setKeepScreenOn(options?: SetKeepScreenOnOptions): void;Deprecated
system.brightnessBrightnessstatic setMode(options?: SetBrightnessModeOptions): void;Deprecated
system.brightnessBrightnessstatic getMode(options?: GetBrightnessModeOptions): void;Deprecated
system.brightnessBrightnessstatic setValue(options?: SetBrightnessOptions): void;Deprecated
system.brightnessBrightnessstatic getValue(options?: GetBrightnessOptions): void;Deprecated
system.brightnessSetKeepScreenOnOptionscomplete?: () => voidDeprecated
system.brightnessSetKeepScreenOnOptionsfail?: (data: string, code: number) => void;Deprecated
system.brightnessSetKeepScreenOnOptionssuccess?: () => void;Deprecated
system.brightnessSetKeepScreenOnOptionskeepScreenOn: boolean;Deprecated
system.brightnessSetBrightnessModeOptionscomplete?: () => voidDeprecated
system.brightnessSetBrightnessModeOptionsfail?: (data: string, code: number) => void;Deprecated
system.brightnessSetBrightnessModeOptionssuccess?: () => void;Deprecated
system.brightnessSetBrightnessModeOptionsmode: number;Deprecated
system.brightnessGetBrightnessModeOptionscomplete?: () => void;Deprecated
system.brightnessGetBrightnessModeOptionsfail?: (data: string, code: number) => void;Deprecated
system.brightnessGetBrightnessModeOptionssuccess?: (data: BrightnessModeResponse) => void;Deprecated
system.brightnessBrightnessModeResponsemode: number;Deprecated
system.brightnessSetBrightnessOptionscomplete?: () => voidDeprecated
system.brightnessSetBrightnessOptionsfail?: (data: string, code: number) => void;Deprecated
system.brightnessSetBrightnessOptionssuccess?: () => void;Deprecated
system.brightnessSetBrightnessOptionsvalue: number;Deprecated
system.brightnessGetBrightnessOptionscomplete?: () => void;Deprecated
system.brightnessGetBrightnessOptionsfail?: (data: string, code: number) => void;Deprecated
system.brightnessGetBrightnessOptionssuccess?: (data: BrightnessResponse) => void;Deprecated
system.brightnessBrightnessResponsevalue: number;Deprecated
ohos.batteryInfobatteryInfoohos.batteryinfo -> ohos.batteryInfoModule name changed

你可能感兴趣的鸿蒙文章

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

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

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

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

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/7bbac9b5d9df4cc6a4b86fc1892bf8c8