requestAccess method
BiometricManager
requestAccess(
- BiometricRequestAccessParams params,
- void onResult(
- bool granted
Bot API 7.2+ A method that requests permission to use biometrics according to the params argument of type BiometricRequestAccessParams. If an optional callback parameter was passed, the callback function will be called and the first argument will be a boolean indicating whether the user granted access.
Implementation
BiometricManager requestAccess(
BiometricRequestAccessParams params,
void Function(bool granted) onResult,
) {
_bm.requestAccess(
BiometricRequestAccessParamsJSObject(reason: params.reason),
onResult.toJS,
);
return this;
}