---
title: "isFlashModeSupported(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturedevice/isflashmodesupported(_:)"
---

# isFlashModeSupported(_:)

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

## Declaration

```swift
func isFlashModeSupported(_ flashMode: AVCaptureDevice.FlashMode) -> Bool
```

## Parameters

- `flashMode`: A flash mode to test if the device supports.

## Return Value

Return Value true if the device supports the flash mode; otherwise, false.

## See Also

### Configuring flash settings

- [hasFlash](avfoundation/avcapturedevice/hasflash.md)
- [isFlashAvailable](avfoundation/avcapturedevice/isflashavailable.md)
- [isFlashActive](avfoundation/avcapturedevice/isflashactive.md)
- [flashMode](avfoundation/avcapturedevice/flashmode-swift.property.md)
- [AVCaptureDevice.FlashMode](avfoundation/avcapturedevice/flashmode-swift.enum.md)
