BatteryInfoLog
Information about the device's battery.
Fields |
batteryStatus |
enum (BatteryStatusLog )
Status of the battery, whether full or charging, etc.
|
powerSource |
enum (PowerSourceLog )
Status of battery power source.
|
batteryPercentage |
number
Current battery percentage [0-100].
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-18 UTC.
[null,null,["Last updated 2024-10-18 UTC."],[[["The device's battery information is represented in JSON format including battery status, power source, and battery percentage."],["Battery status indicates whether the battery is full, charging, or in another state, as defined by the BatteryStatusLog enum."],["Power source information reveals the current source of power for the battery, categorized by the PowerSourceLog enum."],["Battery percentage is represented as a numerical value ranging from 0 to 100, reflecting the current battery level."]]],[]]