setExposureMode method

  1. @override
Future<void> setExposureMode(
  1. ExposureMode mode
)
override

Set the exposure mode for a device.

supportedExposureModes should be called before this.

Implementation

@override
Future<void> setExposureMode(ExposureMode mode) {
  verifyInitialized();
  verifyNotDisposed();
  switch (mode) {
    case ExposureMode.locked:
      return cameraParameters.setAutoExposureLock(toggle: true);
    case ExposureMode.continuous:
      return cameraParameters.setAutoExposureLock(toggle: false);
  }
}