• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.charger (Charger) (System API)
2
3<!--Kit: Basic Services Kit-->
4<!--Subsystem: PowerManager-->
5<!--Owner: @zhang-yinglie; @volcano_wang-->
6<!--Designer: @wangyantian0-->
7<!--Tester: @alien0208-->
8<!--Adviser: @w_Machine_cc-->
9
10The **charger** module enumerates charging types.
11
12> **NOTE**
13>
14> 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.
15>
16>The APIs provided by this module are system APIs.
17
18
19## Modules to Import
20
21```js
22import {charger} from '@kit.BasicServicesKit';
23```
24
25## ChargeType
26
27Enumerates charging types.
28
29**System API**: This is a system API.
30
31**System capability**: SystemCapability.PowerManager.BatteryManager.Core
32
33| Name      | Value | Description             |
34| -------- | ---- | ----------------- |
35| NONE                 | 0    | Unknown charging type.     |
36| WIRED_NORMAL         | 1    | Wired normal charging.|
37| WIRED_QUICK          | 2    | Wired fast charging.  |
38| WIRED_SUPER_QUICK    | 3    | Wired super fast charging.|
39| WIRELESS_NORMAL      | 4    | Wireless normal charging.|
40| WIRELESS_QUICK       | 5    | Wireless fast charging.|
41| WIRELESS_SUPER_QUICK | 6    | Wireless super fast charging.|
42