callCreateCollection method

Future<(DBusObjectPath, DBusObjectPath)> callCreateCollection(
  1. Map<String, DBusValue> properties,
  2. String alias, {
  3. bool noAutoStart = false,
  4. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<(DBusObjectPath collection, DBusObjectPath prompt)> callCreateCollection(
  Map<String, DBusValue> properties,
  String alias, {
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.Secret.Service',
    'CreateCollection',
    [DBusDict.stringVariant(properties), DBusString(alias)],
    replySignature: DBusSignature('oo'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return (result.returnValues[0].asObjectPath(), result.returnValues[1].asObjectPath());
}