OrgFreedesktopUPower class

Constructors

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

Properties

client → DBusClient
The client this object is accessed from.
finalinherited
deviceAdded Stream<OrgFreedesktopUPowerDeviceAdded>
Stream of org.freedesktop.UPower.DeviceAdded signals.
latefinal
deviceRemoved Stream<OrgFreedesktopUPowerDeviceRemoved>
Stream of org.freedesktop.UPower.DeviceRemoved signals.
latefinal
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

callEnumerateDevices({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<List<DBusObjectPath>>
Invokes org.freedesktop.UPower.EnumerateDevices()
callGetCriticalAction({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<String>
Invokes org.freedesktop.UPower.GetCriticalAction()
callGetDisplayDevice({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<DBusObjectPath>
Invokes org.freedesktop.UPower.GetDisplayDevice()
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
getAllProperties(String interface) Future<Map<String, DBusValue>>
Gets the values of all the properties on this object.
inherited
getDaemonVersion() Future<String>
Gets org.freedesktop.UPower.DaemonVersion
getLidIsClosed() Future<bool>
Gets org.freedesktop.UPower.LidIsClosed
getLidIsPresent() Future<bool>
Gets org.freedesktop.UPower.LidIsPresent
getOnBattery() Future<bool>
Gets org.freedesktop.UPower.OnBattery
getProperty(String interface, String name, {DBusSignature? signature}) Future<DBusValue>
Gets a property on this object.
inherited
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