<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImagePickerController/isFlashAvailable(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImagePickerController(cm)isFlashAvailableForCameraDevice:"
  },
  "title" : "isFlashAvailable(for:)"
}
-->

# isFlashAvailable(for:)

Queries whether the specified camera has flash illumination capability.

```
class func isFlashAvailable(for cameraDevice: UIImagePickerController.CameraDevice) -> Bool
```

## Parameters

`cameraDevice`

A [`UIImagePickerController.CameraDevice`](/documentation/UIKit/UIImagePickerController/CameraDevice-swift.enum) constant indicating the camera whose flash capability you want to know.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if `cameraDevice` can use flash illumination, or <doc://com.apple.documentation/documentation/Swift/false> if it cannot.

## See Also

[`cameraDevice`](/documentation/UIKit/UIImagePickerController/cameraDevice-swift.property)

The camera used by the image picker controller.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)