Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
BatteryInfoLog
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Informations sur la batterie de l'appareil.
| Champs |
batteryStatus |
enum (BatteryStatusLog)
État de la batterie (pleine ou en charge, etc.).
|
powerSource |
enum (PowerSourceLog)
État de la source d'alimentation de la batterie.
|
batteryPercentage |
number
Pourcentage actuel de la batterie [0-100].
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/31 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/31 (UTC)."],[],["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"]]