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

# supportsSessionPreset(_:)

Returns a Boolean value that indicates whether you can use the device with capture session configured with the specified preset.

## Declaration

```swift
func supportsSessionPreset(_ preset: AVCaptureSession.Preset) -> Bool
```

## Parameters

- `preset`: A capture session preset.

## Return Value

Return Value true if you can use the device; otherwise, false.

## See Also

### Inspecting device characteristics

- [isVirtualDevice](avfoundation/avcapturedevice/isvirtualdevice.md)
- [constituentDevices](avfoundation/avcapturedevice/constituentdevices.md)
- [hasMediaType(_:)](avfoundation/avcapturedevice/hasmediatype(_:).md)
- [transportType](avfoundation/avcapturedevice/transporttype.md)
