• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.charger (Charging Type)
2
3The **charger** module enumerates charging types.
4
5> **NOTE**
6>
7> 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.
8
9
10## Modules to Import
11
12```js
13import charger from '@ohos.charger';
14```
15
16## ChargeType
17
18Enumerates charging types.
19
20**System API**: This is a system API.
21
22**System capability**: SystemCapability.PowerManager.BatteryManager.Core
23
24| Name      | Value | Description             |
25| -------- | ---- | ----------------- |
26| NONE                 | 0    | Unknown charging type.     |
27| WIRED_NORMAL         | 1    | Wired normal charging.|
28| WIRED_QUICK          | 2    | Wired fast charging.  |
29| WIRED_SUPER_QUICK    | 3    | Wired super fast charging.|
30| WIRELESS_NORMAL      | 4    | Wireless normal charging.|
31| WIRELESS_QUICK       | 5    | Wireless fast charging.|
32| WIRELESS_SUPER_QUICK | 6    | Wireless super fast charging.|
33