startFaceCapture method

Future<FaceCaptureResponse> startFaceCapture({
  1. FaceCaptureConfig? config,
  2. CameraSwitchCallback? cameraSwitchCallback,
})

Implementation

Future<FaceCaptureResponse> startFaceCapture({
  FaceCaptureConfig? config,
  CameraSwitchCallback? cameraSwitchCallback,
}) async {
  _setCameraSwitchCallback(cameraSwitchCallback);
  var response = await _bridge.invokeMethod(
    "startFaceCapture",
    [config?.toJson()],
  );
  return FaceCaptureResponse.fromJson(_decode(response))!;
}