BatteryInfoLog
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-02-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-26 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."]]],["The document outlines device battery information using a JSON format. Key data includes `batteryStatus`, indicating whether the battery is full, charging, or in other states, and is represented as an enum. The `powerSource`, also an enum, details the source of the battery's power. `batteryPercentage`, a number, provides the current charge level, ranging from 0 to 100. Each of the data types references the location of the type's information.\n"]]