setAutoExposureLock method
Sets the auto-exposure lock state.
Applications should check isAutoExposureLockSupported before using this method.
If set to true, the camera auto-exposure routine will immediately pause until the lock is set to false. Exposure compensation settings changes will still take effect while auto-exposure is locked.
If auto-exposure is already locked, setting this to true again has no effect (the driver will not recalculate exposure values).
Stopping preview with Camera.stopPreview, or triggering still image capture with Camera.takePicture, will not change the lock.
Exposure compensation, auto-exposure lock, and auto-white balance lock can be used to capture an exposure-bracketed burst of images, for example.
Auto-exposure state, including the lock state, will not be maintained after camera Camera.release is called. Locking auto-exposure after Camera.open but before the first call to Camera.startPreview will not allow the auto-exposure routine to run at all, and may result in severely over- or under-exposed images.
Implementation
Future<void> setAutoExposureLock({required bool toggle}) {
return _channel.$setAutoExposureLock(this, toggle);
}