ScanbotCameraController constructor

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

Implementation

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