nameHasOwner method

Future<bool> nameHasOwner(
  1. String name
)

Returns true if the name is currently registered on the bus.

Implementation

Future<bool> nameHasOwner(String name) async {
  var result = await callMethod(
      destination: 'org.freedesktop.DBus',
      path: DBusObjectPath('/org/freedesktop/DBus'),
      interface: 'org.freedesktop.DBus',
      name: 'NameHasOwner',
      values: [DBusString(name)],
      replySignature: DBusSignature('b'));
  return result.returnValues[0].asBoolean();
}