callGetDisplayDevice method

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

Invokes org.freedesktop.UPower.GetDisplayDevice()

Implementation

Future<DBusObjectPath> callGetDisplayDevice({
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.UPower',
    'GetDisplayDevice',
    [],
    replySignature: DBusSignature('o'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return result.returnValues[0].asObjectPath();
}