setAutomaticPresenceSimulation method

Future<void> setAutomaticPresenceSimulation(
  1. AuthenticatorId authenticatorId,
  2. bool enabled
)

Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.

Implementation

Future<void> setAutomaticPresenceSimulation(
    AuthenticatorId authenticatorId, bool enabled) async {
  await _client.send('WebAuthn.setAutomaticPresenceSimulation', {
    'authenticatorId': authenticatorId,
    'enabled': enabled,
  });
}