callUpdateServiceTxt method

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

Invokes org.freedesktop.Avahi.EntryGroup.UpdateServiceTxt()

Implementation

Future<void> callUpdateServiceTxt(int interface, int protocol, int flags,
    String name, String type, String domain, List<List<int>> txt,
    {bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  await callMethod(
      'org.freedesktop.Avahi.EntryGroup',
      'UpdateServiceTxt',
      [
        DBusInt32(interface),
        DBusInt32(protocol),
        DBusUint32(flags),
        DBusString(name),
        DBusString(type),
        DBusString(domain),
        DBusArray(
            DBusSignature('ay'), txt.map((child) => DBusArray.byte(child)))
      ],
      replySignature: DBusSignature(''),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
}