updateBiometricToken method

BiometricManager updateBiometricToken(
  1. String token,
  2. void onResult(
    1. bool updated
    )
)

Bot API 7.2+ A method that updates the biometric token in secure storage on the device. To remove the token, pass an empty string. If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the token was updated.

Implementation

BiometricManager updateBiometricToken(String token, void Function(bool updated) onResult) {
  _bm.updateBiometricToken(token, onResult.toJS);

  return this;
}