callGetHostName method

Future<String> callGetHostName({
  1. bool noAutoStart = false,
  2. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<String> callGetHostName(
    {bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  var result = await callMethod(
      'org.freedesktop.Avahi.Server', 'GetHostName', [],
      replySignature: DBusSignature('s'),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
  return (result.returnValues[0] as DBusString).value;
}