Instance Property

exposureMode

The exposure mode for the device.

Declaration

var exposureMode: AVCaptureDevice.ExposureMode { get set }

Discussion

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software