UCameraCapabilities constructor

const UCameraCapabilities({
  1. bool flash = false,
  2. bool torch = false,
  3. UCameraRange zoom = UCameraRange.unsupported,
  4. UCameraRange exposureOffset = UCameraRange.unsupported,
  5. UCameraRange iso = UCameraRange.unsupported,
  6. UCameraRange exposureDuration = UCameraRange.unsupported,
  7. UCameraRange focusDistance = UCameraRange.unsupported,
  8. UCameraRange temperature = UCameraRange.unsupported,
  9. bool focusPoint = false,
  10. bool exposurePoint = false,
  11. bool manualFocus = false,
  12. bool manualExposure = false,
  13. bool whiteBalance = false,
  14. List<UStabilizationMode> stabilization = const <UStabilizationMode>[],
  15. bool hdr = false,
  16. bool nightMode = false,
  17. bool rawCapture = false,
  18. bool depthCapture = false,
  19. bool videoRecording = false,
  20. bool pauseRecording = false,
  21. bool audioRecording = false,
  22. bool imageStream = false,
  23. bool platformScanning = false,
  24. bool multiCamera = false,
  25. bool pictureInPicture = false,
  26. bool lensSwitching = false,
  27. bool orientationLock = false,
  28. bool snapshot = false,
  29. List<UVideoCodec> videoCodecs = const <UVideoCodec>[],
  30. List<UPhotoFormat> photoFormats = const <UPhotoFormat>[],
  31. List<UFrameFormat> frameFormats = const <UFrameFormat>[],
  32. UCameraSize? maxPhotoSize,
  33. UCameraSize? maxVideoSize,
  34. double maxFps = 30,
})

Implementation

const UCameraCapabilities({
  this.flash = false,
  this.torch = false,
  this.zoom = UCameraRange.unsupported,
  this.exposureOffset = UCameraRange.unsupported,
  this.iso = UCameraRange.unsupported,
  this.exposureDuration = UCameraRange.unsupported,
  this.focusDistance = UCameraRange.unsupported,
  this.temperature = UCameraRange.unsupported,
  this.focusPoint = false,
  this.exposurePoint = false,
  this.manualFocus = false,
  this.manualExposure = false,
  this.whiteBalance = false,
  this.stabilization = const <UStabilizationMode>[],
  this.hdr = false,
  this.nightMode = false,
  this.rawCapture = false,
  this.depthCapture = false,
  this.videoRecording = false,
  this.pauseRecording = false,
  this.audioRecording = false,
  this.imageStream = false,
  this.platformScanning = false,
  this.multiCamera = false,
  this.pictureInPicture = false,
  this.lensSwitching = false,
  this.orientationLock = false,
  this.snapshot = false,
  this.videoCodecs = const <UVideoCodec>[],
  this.photoFormats = const <UPhotoFormat>[],
  this.frameFormats = const <UFrameFormat>[],
  this.maxPhotoSize,
  this.maxVideoSize,
  this.maxFps = 30,
});