>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
## Modules to Import<a name="s0e7b1e85a4274f58a8206e0b065bd80c"></a>
| handler | Function | Yes | Handler used to request a frame. When **requestAnimationFrame** calls the **handler**, the timestamp is passed to the first parameter to indicate the time when **requestAnimationFrame** starts to execute the callback. |
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="ac53e6549d32f413e9c51cd8a53f4650a"><a name="ac53e6549d32f413e9c51cd8a53f4650a"></a><a name="ac53e6549d32f413e9c51cd8a53f4650a"></a>Handler used to request a frame. When <strong id="b83691144121"><a name="b83691144121"></a><a name="b83691144121"></a>requestAnimationFrame</strong> calls the <strong id="b17229515216"><a name="b17229515216"></a><a name="b17229515216"></a>handler</strong>, the timestamp is passed to the first parameter to indicate the time when <strong id="b1559713311312"><a name="b1559713311312"></a><a name="b1559713311312"></a>requestAnimationFrame</strong> starts to execute the callback.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p049816437303"><a name="p049816437303"></a><a name="p049816437303"></a>Additional parameter, which is passed to the <strong id="b9292174942"><a name="b9292174942"></a><a name="b9292174942"></a>handler</strong> as a parameter during function callback.</p>
| fill | string | No | Animation start/stop mode. The default value is **none**. |
</th>
| direction | string | No | Animation playback mode. The default value is **normal**. |
</tr>
| iterations | number | No | Number of times that an animation is played. The default value is **1**. If this parameter is set to **0**, the animation is not played. If this parameter is set to **-1**, the animation is played for an unlimited number of times. |
</thead>
| begin | number | No | Start point of the animation easing. If this parameter is not set, the default value **0** is used. |
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p9109221104814"><a name="p9109221104814"></a><a name="p9109221104814"></a>Attributes of the <strong id="b12693720715"><a name="b12693720715"></a><a name="b12693720715"></a>Animator</strong> to be created. For details, see the options table.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p17580011172219"><a name="p17580011172219"></a><a name="p17580011172219"></a>Duration for playing an animation, in milliseconds. The default value is <strong id="b1125162610819"><a name="b1125162610819"></a><a name="b1125162610819"></a>0</strong>.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p858021152215"><a name="p858021152215"></a><a name="p858021152215"></a>Animation delay duration, in milliseconds. The default value is <strong id="b76079311298"><a name="b76079311298"></a><a name="b76079311298"></a>0</strong>, indicating that there is no delay.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p185811411172213"><a name="p185811411172213"></a><a name="p185811411172213"></a>Animation start/stop mode. The default value is <strong id="b758714215913"><a name="b758714215913"></a><a name="b758714215913"></a>none</strong>. For details, see <a href="../../nottoctopics/en-us_topic_0000001173164765.md#p886655314713">animation-fill-mode</a>.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p195811211152214"><a name="p195811211152214"></a><a name="p195811211152214"></a>Animation playback mode. The default value is <strong id="b599714386107"><a name="b599714386107"></a><a name="b599714386107"></a>normal</strong>. For details, see <a href="../../nottoctopics/en-us_topic_0000001173164765.md#p2611151295818">animation-direction</a>.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p1458201118221"><a name="p1458201118221"></a><a name="p1458201118221"></a>Number of times that an animation is played. The default value is <strong id="b11868105418107"><a name="b11868105418107"></a><a name="b11868105418107"></a>1</strong>. If this parameter is set to <strong id="b10384143101114"><a name="b10384143101114"></a><a name="b10384143101114"></a>0</strong>, the animation is not played. If this parameter is set to <strong id="b1196115711115"><a name="b1196115711115"></a><a name="b1196115711115"></a>-1</strong>, the animation is played for an unlimited number of times.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p105820113229"><a name="p105820113229"></a><a name="p105820113229"></a>Start point of the animation easing. If this parameter is not set, the default value <strong id="b10935111319129"><a name="b10935111319129"></a><a name="b10935111319129"></a>0</strong> is used.</p>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.1.5.1.4 "><p id="p195831211122216"><a name="p195831211122216"></a><a name="p195831211122216"></a>End point of the animation easing. If this parameter is not set, the default value <strong id="b86451784138"><a name="b86451784138"></a><a name="b86451784138"></a>1</strong> is used.</p>
<td class="cellrowborder" valign="top" width="72.53%" headers="mcps1.1.4.1.3 "><p id="p15584161112214"><a name="p15584161112214"></a><a name="p15584161112214"></a>Updates the animation parameters. The input parameters are the same as those of <strong id="b15428258171314"><a name="b15428258171314"></a><a name="b15428258171314"></a>createAnimator</strong>.</p>
>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
The Battery Info module provides APIs for querying the charger type, battery health status, and battery charging status.
The Battery Info module provides APIs for querying the charger type, battery health status, and battery charging status.
## Modules to Import<a name="section199443271307"></a>
## Modules to Import
```js
```js
importbatteryInfofrom'@ohos.batteryInfo';
importbatteryInfofrom'@ohos.batteryInfo';
...
@@ -16,264 +16,63 @@ import batteryInfo from '@ohos.batteryInfo';
...
@@ -16,264 +16,63 @@ import batteryInfo from '@ohos.batteryInfo';
SystemCapability.PowerManager.BatteryManager
SystemCapability.PowerManager.BatteryManager
## Attributes<a name="section0536924123914"></a>
## Attributes
Describes battery information.
Describes battery information.
<aname="table20633101642315"></a>
| Name | Type | Readable | Writable | Description |
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p103961315181818"><aname="p103961315181818"></a><aname="p103961315181818"></a>Battery state of charge (SoC) of the current device, in unit of percentage.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p238673617568"><aname="p238673617568"></a><aname="p238673617568"></a>Battery charging state of the current device.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p1365563875614"><aname="p1365563875614"></a><aname="p1365563875614"></a>Battery health state of the current device.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p19264101622016"><aname="p19264101622016"></a><aname="p19264101622016"></a>Charger type of the current device.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p127111826172018"><aname="p127111826172018"></a><aname="p127111826172018"></a>Battery voltage of the current device, in unit of microvolt.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p9298104612205"><aname="p9298104612205"></a><aname="p9298104612205"></a>Battery technology of the current device.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p7843573202"><aname="p7843573202"></a><aname="p7843573202"></a>Battery temperature of the current device, in unit of 0.1°C.</p>
<tdclass="cellrowborder"valign="top"width="42.6%"headers="mcps1.1.6.1.5 "><pid="p15590255280"><aname="p15590255280"></a><aname="p15590255280"></a>Whether the battery is supported or present.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p9910201913391"><aname="p9910201913391"></a><aname="p9910201913391"></a>The battery is being charged.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p1210733413414"><aname="p1210733413414"></a><aname="p1210733413414"></a>The battery is not being charged.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p540191793918"><aname="p540191793918"></a><aname="p540191793918"></a>The battery is in the healthy state.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p2399117183918"><aname="p2399117183918"></a><aname="p2399117183918"></a>The battery is overheated.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p203691717193914"><aname="p203691717193914"></a><aname="p203691717193914"></a>The battery voltage is over high.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p20970177153913"><aname="p20970177153913"></a><aname="p20970177153913"></a>The battery temperature is low.</p>
<tdclass="cellrowborder"valign="top"width="33.043304330433045%"headers="mcps1.1.4.1.3 "><pid="p13971137153918"><aname="p13971137153918"></a><aname="p13971137153918"></a>The battery is dead.</p>