callSearchItems method

Future<(List<DBusObjectPath>, List<DBusObjectPath>)> callSearchItems(
  1. Map<String, String> attributes, {
  2. bool noAutoStart = false,
  3. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<(List<DBusObjectPath> unlocked, List<DBusObjectPath> locked)> callSearchItems(
  Map<String, String> attributes, {
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.Secret.Service',
    'SearchItems',
    [
      DBusDict(
        DBusSignature('s'),
        DBusSignature('s'),
        attributes.map((key, value) => MapEntry(DBusString(key), DBusString(value))),
      ),
    ],
    replySignature: DBusSignature('aoao'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return (result.returnValues[0].asObjectPathArray().toList(), result.returnValues[1].asObjectPathArray().toList());
}