SystemdSessionManager class

The client that connects to the SystemD Session Manager

Constructors

SystemdSessionManager({DBusClient? bus, @visibleForTesting DBusRemoteObject? object})

Properties

hashCode int
The hash code for this object.
no setterinherited
onExternalPower bool
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

canHalt() Future<String>
canHibernate() Future<String>
canPowerOff() Future<String>
canReboot() Future<String>
canSuspend() Future<String>
close() Future<void>
Closes connection to the Session Manager service.
connect() Future<void>
Connects to the Session Manager service.
halt(bool interactive) Future<void>
Halt the system.
hibernate(bool interactive) Future<void>
Hibernate the system.
listSessions() Future<Iterable<SystemdSession>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
powerOff(bool interactive) Future<void>
Power off the system.
reboot(bool interactive) Future<void>
Reboot the system.
suspend(bool interactive) Future<void>
Suspend the system.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

busName String
final
managerName String
final
objectPath String
final