ScanbotCameraController constructor

ScanbotCameraController(
  1. {required int viewId,
  2. required dynamic onCameraReady(
    1. ScanbotCameraController
    )?,
  3. dynamic onPictureTaken(
    1. Page
    )?,
  4. dynamic onHeavyOperationProcessing(
    1. bool
    )?,
  5. LiveDetector? detector}
)

Implementation

ScanbotCameraController({
  required this.viewId,
  required Function(ScanbotCameraController)? onCameraReady,
  Function(common.Page)? onPictureTaken,
  Function(bool)? onHeavyOperationProcessing,
  this.detector,
}) {
  this._onHeavyOperationProcessing = onHeavyOperationProcessing;
  this._onCameraReady = onCameraReady;
  this._onPictureTaken = onPictureTaken;
  channelName = "scanbot_sdk_camera_$viewId";
  _cameraChannel = MethodChannel(channelName);
  _cameraChannel.setMethodCallHandler(_resultHandler);
  _onAttachDetector();
}