initCameraPreview method

Future<void> initCameraPreview({
  1. ScannerParameters? initialArguments,
})

Initialize camera preview.

Can throw a PlatformException if device has problem with camera, or doesn't have one. Plugin ask permission to use camera, if user doesn't grant permission also throw a PlatformException.

Implementation

Future<void> initCameraPreview({ScannerParameters? initialArguments}) {
  return _channel.invokeMethod(_initCameraMethod, initialArguments?.toJson());
}