openharmony 鸿蒙 js-apis-charger-sys

2025-06-12 浏览 (1)

@ohos.charger (Charger) (System API)

The charger module enumerates charging types.

NOTE

The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.

The APIs provided by this module are system APIs.

Modules to Import

import {charger} from '@kit.BasicServicesKit';

ChargeType

Enumerates charging types.

System API: This is a system API.

System capability: SystemCapability.PowerManager.BatteryManager.Core

NameValueDescription
NONE0Unknown charging type.
WIRED_NORMAL1Wired normal charging.
WIRED_QUICK2Wired fast charging.
WIRED_SUPER_QUICK3Wired super fast charging.
WIRELESS_NORMAL4Wireless normal charging.
WIRELESS_QUICK5Wireless fast charging.
WIRELESS_SUPER_QUICK6Wireless super fast charging.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Basic Services Kit

harmony 鸿蒙DeviceInfo

harmony 鸿蒙InitSync

harmony 鸿蒙OH_Print

harmony 鸿蒙OsAccount

harmony 鸿蒙Pasteboard

harmony 鸿蒙Print_Margin

harmony 鸿蒙Print_PageSize

harmony 鸿蒙Print_PrintAttributes

harmony 鸿蒙Print_PrintDocCallback

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