Contents

setWhiteBalanceModeLocked(whiteBalanceTemperatureAndTintValues:handler:)

Sets white balance to locked mode with explicit temperature and tint values.

Declaration

func setWhiteBalanceModeLocked(whiteBalanceTemperatureAndTintValues: AVCaptureDevice.WhiteBalanceTemperatureAndTintValues, handler: ((CMTime) -> Void)? = nil)

Parameters

Discussion

This method takes a AVCaptureDevice.WhiteBalanceTemperatureAndTintValues struct and applies the appropriate AVCaptureDevice.WhiteBalanceGains. This method throws an NSRangeException if any of the values are set to an unsupported level. This method throws an NSGenericException if called without first obtaining exclusive access to the device using lockForConfiguration().

See Also

Setting white balance manually