callGetBrightness method

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

Invokes org.freedesktop.UPower.KbdBacklight.GetBrightness()

Implementation

Future<int> callGetBrightness({
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.UPower.KbdBacklight',
    'GetBrightness',
    [],
    replySignature: DBusSignature('i'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return result.returnValues[0].asInt32();
}