Instance Property

hasFlash

Indicates whether the capture device has a flash.

Declaration

var hasFlash: Bool { get }

Discussion

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

See Also

Managing Flash Settings

var isFlashAvailable: Bool

Indicates whether the flash is currently available for use.

enum AVCaptureDevice.FlashMode

Constants to specify the flash mode of a capture device.

var flashMode: AVCaptureDevice.FlashMode

The device’s current flash mode.

func isFlashModeSupported(AVCaptureDevice.FlashMode) -> Bool

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

var isFlashActive: Bool

Indicates whether the flash is currently active.

Deprecated

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