OrgFreedesktopUPowerDevice class

Constructors

OrgFreedesktopUPowerDevice(DBusClient client, String destination, {DBusObjectPath path = const DBusObjectPath.unchecked('/org/freedesktop/UPower/devices/DisplayDevice')})

Properties

client → DBusClient
The client this object is accessed from.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the client providing this object.
finalinherited
path → DBusObjectPath
The path to the object.
finalinherited
propertiesChanged ↔ Stream<DBusPropertiesChangedSignal>
Stream of signals when the remote object indicates a property has changed.
latefinalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

callGetHistory(String type, int timespan, int resolution, {bool noAutoStart = false, bool allowInteractiveAuthorization = false}) → Future<List<List<DBusValue>>>
Invokes org.freedesktop.UPower.Device.GetHistory()
callGetStatistics(String type, {bool noAutoStart = false, bool allowInteractiveAuthorization = false}) → Future<List<List<DBusValue>>>
Invokes org.freedesktop.UPower.Device.GetStatistics()
callMethod(String? interface, String name, Iterable<DBusValue> values, {DBusSignature? replySignature, bool noReplyExpected = false, bool noAutoStart = false, bool allowInteractiveAuthorization = false}) → Future<DBusMethodSuccessResponse>
Invokes a method on this object. Throws DBusMethodResponseException if the remote side returns an error.
inherited
callRefresh({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) → Future<void>
Invokes org.freedesktop.UPower.Device.Refresh()
getAllProperties(String interface) → Future<Map<String, DBusValue>>
Gets the values of all the properties on this object.
inherited
getBatteryLevel() → Future<int>
Gets org.freedesktop.UPower.Device.BatteryLevel
getCapacity() → Future<double>
Gets org.freedesktop.UPower.Device.Capacity
getChargeCycles() → Future<int>
Gets org.freedesktop.UPower.Device.ChargeCycles
getEnergy() → Future<double>
Gets org.freedesktop.UPower.Device.Energy
getEnergyEmpty() → Future<double>
Gets org.freedesktop.UPower.Device.EnergyEmpty
getEnergyFull() → Future<double>
Gets org.freedesktop.UPower.Device.EnergyFull
getEnergyFullDesign() → Future<double>
Gets org.freedesktop.UPower.Device.EnergyFullDesign
getEnergyRate() → Future<double>
Gets org.freedesktop.UPower.Device.EnergyRate
getHasHistory() → Future<bool>
Gets org.freedesktop.UPower.Device.HasHistory
getHasStatistics() → Future<bool>
Gets org.freedesktop.UPower.Device.HasStatistics
getIconName() → Future<String>
Gets org.freedesktop.UPower.Device.IconName
getIsPresent() → Future<bool>
Gets org.freedesktop.UPower.Device.IsPresent
getIsRechargeable() → Future<bool>
Gets org.freedesktop.UPower.Device.IsRechargeable
getLuminosity() → Future<double>
Gets org.freedesktop.UPower.Device.Luminosity
getModel() → Future<String>
Gets org.freedesktop.UPower.Device.Model
getNativePath() → Future<String>
Gets org.freedesktop.UPower.Device.NativePath
getOnline() → Future<bool>
Gets org.freedesktop.UPower.Device.Online
getPercentage() → Future<double>
Gets org.freedesktop.UPower.Device.Percentage
getPowerSupply() → Future<bool>
Gets org.freedesktop.UPower.Device.PowerSupply
getProperty(String interface, String name, {DBusSignature? signature}) → Future<DBusValue>
Gets a property on this object.
inherited
getSerial() → Future<String>
Gets org.freedesktop.UPower.Device.Serial
getState() → Future<int>
Gets org.freedesktop.UPower.Device.State
getTechnology() → Future<int>
Gets org.freedesktop.UPower.Device.Technology
getTemperature() → Future<double>
Gets org.freedesktop.UPower.Device.Temperature
getTimeToEmpty() → Future<int>
Gets org.freedesktop.UPower.Device.TimeToEmpty
getTimeToFull() → Future<int>
Gets org.freedesktop.UPower.Device.TimeToFull
getType() → Future<int>
Gets org.freedesktop.UPower.Device.Type
getUpdateTime() → Future<int>
Gets org.freedesktop.UPower.Device.UpdateTime
getVendor() → Future<String>
Gets org.freedesktop.UPower.Device.Vendor
getVoltage() → Future<double>
Gets org.freedesktop.UPower.Device.Voltage
getWarningLevel() → Future<int>
Gets org.freedesktop.UPower.Device.WarningLevel
introspect() → Future<DBusIntrospectNode>
Gets the introspection data for this object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setProperty(String interface, String name, DBusValue value) → Future<void>
Sets a property on this object.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited