requestAddBioData method
Implementation
Future<void> requestAddBioData(BioPayload payload, {int? type, bool? doWorkNow = true}) async {
this.payload = payload;
if(type != null) {
requestType = type;
}
String script = await BioConstants.getJSBiometricAuthenticate(payload);
// BootpayPrint("requestAddBioData : $script, $type");
updateProgressShow(true);
if(doWorkNow == true) {
webView?.controller?.runJavaScript(
callJavascriptAsync(script)
);
// webView?.controller?.future.then((controller) {
// controller.runJavascript(
// callJavascriptAsync(script)
// );
// });
} else {
webView?.startScript = script;
}
}