Version: 2017.3
public static float batteryLevel ;

描述

当前的电池电量(只读)。

电池的当前电量,以 0 到 1 之间的浮点值表示。

如果目标平台上没有电池电量,则该属性返回 -1。

另请参阅:batteryStatus