DBusWSClient class

A client connection to a D-Bus over websocket server.

Inheritance

Constructors

DBusWSClient(Uri? _uri)
DBusWSClient.test(StreamChannel _channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
introspectable bool
True if this client allows other clients to introspect it.
finalinherited
nameAcquired Stream<String>
Stream of names as they are acquired by this client.
no setterinherited
nameLost Stream<String>
Stream of names as this client loses them.
no setterinherited
nameOwnerChanged Stream<DBusNameOwnerChangedEvent>
Stream of name change events.
no setterinherited
ownedNames Iterable<String>
Gets the names owned by this connection.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueName String
Gets the unique name this connection uses.
no setterinherited

Methods

callMethod({String? destination, required DBusObjectPath path, String? interface, required String name, Iterable<DBusValue> values = const [], DBusSignature? replySignature, bool noReplyExpected = false, bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<DBusMethodSuccessResponse>
Invokes a method on a D-Bus object. Throws DBusMethodResponseException if the remote side returns an error.
inherited
close() Future<void>
Terminates all active connections. If a client remains unclosed, the Dart process may not terminate.
override
emitSignal({String? destination, required DBusObjectPath path, required String interface, required String name, Iterable<DBusValue> values = const []}) Future<void>
Emits a signal from a D-Bus object.
inherited
getConnectionCredentials(String name) Future<DBusProcessCredentials>
Returns credentials for the process running the client that owns name.
inherited
getConnectionUnixProcessId(String name) Future<int>
Returns the Unix process ID of the process running the client that owns name.
inherited
getConnectionUnixUser(String name) Future<int>
Returns the Unix user ID of the process running the client that owns name.
inherited
getId() Future<String>
Gets the unique ID of the bus.
inherited
getMachineId([String destination = 'org.freedesktop.DBus']) Future<String>
Gets the machine ID of the client at the given destination. If destination is not set, gets the machine the D-Bus server is running on.
inherited
getNameOwner(String name) Future<String?>
Returns the unique connection name of the client that owns name.
inherited
listActivatableNames() Future<List<String>>
Returns a list of names that activate services.
inherited
listNames() Future<List<String>>
Lists the registered names on the bus.
inherited
listQueuedOwners(String name) Future<List<String>>
Lists the unique bus names of the clients queued to own the well-known bus name.
inherited
nameHasOwner(String name) Future<bool>
Returns true if the name is currently registered on the bus.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ping([String destination = 'org.freedesktop.DBus']) Future<void>
Sends a ping request to the client at the given destination. If destination is not set, pings the D-Bus server.
inherited
registerObject(DBusObject object) Future<void>
Registers an object on the bus.
inherited
releaseName(String name) Future<DBusReleaseNameReply>
Releases the D-Bus object name previously acquired using requestName().
inherited
requestName(String name, {Set<DBusRequestNameFlag> flags = const {}}) Future<DBusRequestNameReply>
Requests usage of name as a D-Bus object name.
inherited
startServiceByName(String name) Future<DBusStartServiceByNameReply>
Starts the service with name.
inherited
toString() String
A string representation of this object.
override
unregisterObject(DBusObject object) Future<void>
Unregisters an object on the bus.
inherited

Operators

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