---
title: isFlashEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptureresolvedphotosettings/isflashenabled
---

# isFlashEnabled

A Boolean value indicating whether the camera flash fires for this capture.

## Declaration

```swift
var isFlashEnabled: Bool { get }
```

## Discussion

Discussion This property corresponds to the AVCapturePhotoSettings property flashMode. If you specify a flash mode of AVCaptureDevice.FlashMode.auto when requesting a capture, the device automatically chooses whether to use the flash based on the scene contents at the moment of capture. Therefore, you don’t know whether the flash will fire until right before the moment of capture. When the photo output calls your photoOutput(_:willBeginCaptureFor:) method (or other delegate methods that occur later in the capture process), you can use this property to determine whether a capture uses the flash. note: The flash can also become temporarily disabled if the device is too hot. In this case, the flash will not fire even if you specify a flash mode of AVCaptureDevice.FlashMode.on, and the resolved photo settings object passed to your AVCapturePhotoCaptureDelegate method has a isFlashEnabled value of false. To detect when the flash is temporarily disabled, key-value observe the isFlashAvailable property.

## See Also

### Examining photo capture settings

- [isRedEyeReductionEnabled](avfoundation/avcaptureresolvedphotosettings/isredeyereductionenabled.md)
- [isVirtualDeviceFusionEnabled](avfoundation/avcaptureresolvedphotosettings/isvirtualdevicefusionenabled.md)
- [isFastCapturePrioritizationEnabled](avfoundation/avcaptureresolvedphotosettings/isfastcaptureprioritizationenabled.md)
- [isContentAwareDistortionCorrectionEnabled](avfoundation/avcaptureresolvedphotosettings/iscontentawaredistortioncorrectionenabled.md)
- [isStillImageStabilizationEnabled](avfoundation/avcaptureresolvedphotosettings/isstillimagestabilizationenabled.md)
- [isDualCameraFusionEnabled](avfoundation/avcaptureresolvedphotosettings/isdualcamerafusionenabled.md)
