Battery Manager

  • Description

      Battery Manager

      The Battery Manager it's a non visible component that allows you to query the properties of the battery of our device.

  • Events

    • On Battery Event
    • Event that runs when it detects any change in the battery. These changes we can get on with the properties of this component.
  • Properties

    • battery Health (number)
    • This property allows you to get the life of our battery. The values are constant and can be the following:
      • 1. Unknown.
      • 2. Good.
      • 3. Overheating.
      • 4. Dead.
      • 5. Overvoltage.
      • 6. Unspecified Failure.
      • 7. Cold.
    • Battery Percentage (number)
    • This property allows us to obtain the percentage of charge of the battery. Possible values range from 0% to 100%.
    • Battery Status (number)
    • This property allows us to obtain the state of the battery. The values are constant and can be the following:
      • 1. Unknown.
      • 2. Charging.
      • 3. Discharging.
      • 4. Not Charging.
      • 5. Full.
    • Battery Temperature (number)
    • This property allows us to obtain the temperature of the battery in degrees celcius.
    • Battery Voltage (number)
    • This property allows us to obtain the voltage of the battery in m V (millivolt). A typical value will be close to 4 volts more or less for the majority of the phones, that is about 4000 m V.