DBusClientProxy class
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.
inherited
-
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.
-
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.
inherited
-
unregisterObject(DBusObject object)
→ Future<void>
-
Unregisters an
object on the bus.
inherited
Static Properties
-
type
↔ String
-
getter/setter pair