Battery Status

The Battery Status behavior outputs the information of the device's battery status.

 

Output Field Description
Battery Level

The current charge level of the battery. When fully charged, the device's battery level is at 100%.

Battery State

Check if the battery is either:

  • Charging - The device is plugged in to an external power source.
  • Unplugged - The device is not charging.
  • Full - The device's battery level is at 100%.
  • Unknown - The behavior failed to fetch the battery state.
Low Power Mode

This will output 1 if the device is in low power mode. Otherwise, this will output 0.

 

Example: Low Power Mode
If the device is in low power mode, disable certain features to conserve battery life.

304DEC53-5FA8-4599-A768-57857CCC4508.png

0 Comments

Article is closed for comments.