callEnumerateDevices method

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

Invokes org.freedesktop.UPower.EnumerateDevices()

Implementation

Future<List<DBusObjectPath>> callEnumerateDevices({
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.UPower',
    'EnumerateDevices',
    [],
    replySignature: DBusSignature('ao'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return result.returnValues[0].asObjectPathArray().toList();
}