set_battery_level


Description:

[ Version ( since = "1.8.1" ) ]
public void set_battery_level (uint32 battery_level)

Sets the battery level, or fwupd_battery_level_invalid.

Setting this allows fwupd to show a warning if the device change is too low to perform the update.

Parameters:

this

a Device

battery_level

the percentage value