Property

AstalBatteryDevice:percentage

Declaration

property percentage: double [ read, write ]

Description

The amount of energy left in the power source expressed as a percentage between 0 and 1. This property is only valid if AstalBatteryDevice:device-type is ASTAL_BATTERY_TYPE_BATTERY. The percentage will be an approximation if AstalBatteryDevice:battery-level is set to something other than None.

Type:gdouble

Flags

Readableyes
Writableyes
Constructno
Construct onlyno