callServiceBrowserNew method

Future<String> callServiceBrowserNew({
  1. required int interface,
  2. required int protocol,
  3. required String type,
  4. required String domain,
  5. required int flags,
  6. bool noAutoStart = false,
  7. bool allowInteractiveAuthorization = false,
})

Invokes org.freedesktop.Avahi.Server.ServiceBrowserNew()

Implementation

Future<String> callServiceBrowserNew({
  required int interface,
  required int protocol,
  required String type,
  required String domain,
  required int flags,
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
      'org.freedesktop.Avahi.Server',
      'ServiceBrowserNew',
      [
        DBusInt32(interface),
        DBusInt32(protocol),
        DBusString(type),
        DBusString(domain),
        DBusUint32(flags)
      ],
      replySignature: DBusSignature('o'),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
  return (result.returnValues[0] as DBusObjectPath).value;
}