UPowerClient class
A client that connects to UPower.
Constructors
- UPowerClient({DBusClient? bus})
- Creates a new UPower client connected to the system D-Bus.
Properties
- daemonVersion → String
-
The version of the UPower daemon.
no setter
-
deviceAdded
→ Stream<
UPowerDevice> -
Stream of devices as they are added.
no setter
-
deviceRemoved
→ Stream<
UPowerDevice> -
Stream of devices as they are removed.
no setter
-
devices
→ List<
UPowerDevice> -
Power devices on this system.
no setter
- displayDevice → UPowerDevice
-
Composite device to get the overall system state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- kbdBacklight ↔ UPowerKbdBacklight
-
The D-Bus UPower object for keyboard backlight.
latefinal
- lidIsClosed → bool
-
True if the lid is closed.
no setter
- lidIsPresent → bool
-
True if a lid is present (e.g. on a laptop).
no setter
- onBattery → bool
-
True if currently being powered by battery.
no setter
-
propertiesChanged
→ Stream<
List< String> > -
Stream of property names as they change.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Terminates the connection to the UPower daemon. If a client remains unclosed, the Dart process may not terminate.
-
connect(
) → Future< void> - Connects to the UPower daemon.
-
getCriticalAction(
) → Future< String> - Gets the action the system will take when the power supply is critical.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited