callGetSecrets method

Future<Map<DBusObjectPath, List<DBusValue>>> callGetSecrets(
  1. List<DBusObjectPath> items,
  2. DBusObjectPath session, {
  3. bool noAutoStart = false,
  4. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<Map<DBusObjectPath, List<DBusValue>>> callGetSecrets(
  List<DBusObjectPath> items,
  DBusObjectPath session, {
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.Secret.Service',
    'GetSecrets',
    [DBusArray.objectPath(items), session],
    replySignature: DBusSignature('a{o(oayays)}'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return result.returnValues[0].asDict().map((key, value) => MapEntry(key.asObjectPath(), value.asStruct()));
}