Skip to content

CF_PowerInfo

Category: app
GitHub: cute_app.h


Detailed information about the power level/status of the application.

Struct Members Description
CF_PowerState state Enumeration CF_PowerState for the power state.
int seconds_left The seconds of battery life left. -1 means not running on the battery, or unable to get a valid value.
int percentage_left The percentage of battery life left from 0 to 100. -1 means not running on the battery, or unable to get a valid value.

cf_app_power_info
cf_power_state_to_string
CF_PowerState