callOpenSession method

Future<(DBusValue, DBusObjectPath)> callOpenSession(
  1. String algorithm,
  2. DBusValue input, {
  3. bool noAutoStart = false,
  4. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<(DBusValue output, DBusObjectPath result)> callOpenSession(
  String algorithm,
  DBusValue input, {
  bool noAutoStart = false,
  bool allowInteractiveAuthorization = false,
}) async {
  var result = await callMethod(
    'org.freedesktop.Secret.Service',
    'OpenSession',
    [DBusString(algorithm), DBusVariant(input)],
    replySignature: DBusSignature('vo'),
    noAutoStart: noAutoStart,
    allowInteractiveAuthorization: allowInteractiveAuthorization,
  );
  return (result.returnValues[0].asVariant(), result.returnValues[1].asObjectPath());
}