callLock method

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

Invokes org.freedesktop.Secret.Service.Lock()

Implementation

Future<(List<DBusObjectPath> locked, DBusObjectPath Prompt)> callLock(
  List<DBusObjectPath> objects, {
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.Secret.Service',
    'Lock',
    [DBusArray.objectPath(objects)],
    replySignature: DBusSignature('aoo'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return (result.returnValues[0].asObjectPathArray().toList(), result.returnValues[1].asObjectPath());
}