callSearchItems method

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

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

Implementation

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