Contents

lockForConfiguration()

Requests exclusive access to configure device hardware properties.

Declaration

func lockForConfiguration() throws

Discussion

To set hardware properties on a capture device, such as the focusMode and exposureMode, your app must first acquire a lock on the device. Only hold the device lock if your app requires settable device properties to remain unchanged. Holding the device lock unnecessarily may degrade capture quality in other apps sharing the device.

See Also

Configuring camera hardware