Instance Property


The exposure mode for the device.


var exposureMode: AVCaptureDevice.ExposureMode { get set }


Before changing the value of this property, you must call lockForConfiguration() to acquire exclusive access to the device’s configuration properties. Otherwise, setting the value of this property raises an exception. When you are done configuring the device, call unlockForConfiguration() to release the lock and allow other devices to configure the settings.

You can observe changes to the value of this property using Key-value observing.

See AVCaptureDevice.ExposureMode for possible values.

See Also

Managing Exposure Settings

var isAdjustingExposure: Bool

Indicates whether the device is currently adjusting its exposure setting.

func isExposureModeSupported(AVCaptureDevice.ExposureMode) -> Bool

Returns a Boolean value that indicates whether the given exposure mode is supported.

var exposurePointOfInterest: CGPoint

The point of interest for exposure.

var isExposurePointOfInterestSupported: Bool

Indicates whether the device supports a point of interest for exposure.

enum AVCaptureDevice.ExposureMode

Constants to specify the exposure mode of a capture device.