callServiceResolverNew method

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

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

Implementation

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