startFaceRecon method

  1. @override
Future<String?> startFaceRecon(
  1. String mobileToken,
  2. String sessionId,
  3. String fontColor,
  4. String backgroundColor,
  5. String environment,
  6. String audioConfiguration,
  7. bool showSuccessScreen,
  8. bool showIntroductionScreens,
  9. bool activeFaceLiveness,
  10. bool useValidation,
  11. String documentNumber,
)
override

Implementation

@override
Future<String?> startFaceRecon(
  String mobileToken,
  String sessionId,
  String fontColor,
  String backgroundColor,
  String environment,
  String audioConfiguration,
  bool showSuccessScreen,
  bool showIntroductionScreens,
  bool activeFaceLiveness,
  bool useValidation,
  String documentNumber,
) async {
  try {
    return await methodChannel.invokeMethod('startFaceRecon', {
      'mobileToken': mobileToken,
      'sessionId': sessionId,
      'fontColor': fontColor,
      'backgroundColor': backgroundColor,
      'environment': environment,
      'audioConfiguration': audioConfiguration,
      'showSuccessScreen': showSuccessScreen,
      'showIntroductionScreens': showIntroductionScreens,
      'activeFaceLiveness': activeFaceLiveness,
      'useValidation': useValidation,
      'documentNumber': documentNumber,
    });
  } on PlatformException catch (e) {
    throw e.message ?? 'Unknown error occurred';
  }
}