callGetAlternativeHostName method

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

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

Implementation

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