CameraController constructor
CameraController(
- CameraDescription? description,
- ResolutionPreset? resolutionPreset, {
- bool? enableAudio = true,
- ResolutionPreset? streamingPreset,
- bool? androidUseOpenGL = false,
- TakePhotoCallback1? takePhotoCallback1,
- TakePhotoCallback2? takePhotoCallback2,
- bool? getPhotoByBinary,
- int captureWidth = 480,
- int captureHeight = 640,
With takePhotoCallback1, handle the callback function with images. With takePhotoCallback2, handle the callback function with binary(Uint8List). You must set getPhotoByBinary true to use takePhotoCallback2.
Implementation
CameraController(
this.description,
this.resolutionPreset, {
this.enableAudio = true,
this.streamingPreset,
this.androidUseOpenGL = false,
this.takePhotoCallback1,
this.takePhotoCallback2,
this.getPhotoByBinary,
this.captureWidth = 480,
this.captureHeight = 640,
}) : super(CameraValue.uninitialized());