Instance Property


The device’s current flash mode.


@property(nonatomic) AVCaptureFlashMode flashMode;


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 finish 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 AVCaptureFlashMode for possible values.

See Also

Managing Flash Settings


Indicates whether the capture device has a flash.


Indicates whether the flash is currently available for use.


Constants to specify the flash mode of a capture device.

- isFlashModeSupported:

Returns a Boolean value that indicates whether the device supports the given flash mode.


Indicates whether the flash is currently active.


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