---
title: deviceType
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/devicetype-swift.property
---

# deviceType

The type of device, such as a built-in microphone or wide-angle camera.

## Declaration

```swift
var deviceType: AVCaptureDevice.DeviceType { get }
```

## Discussion

Discussion Use the default(_:for:position:) method or the AVCaptureDevice.DiscoverySession class to find capture devices by device type.

## See Also

### Identifying a device

- [uniqueID](avfoundation/avcapturedevice/uniqueid.md)
- [modelID](avfoundation/avcapturedevice/modelid.md)
- [localizedName](avfoundation/avcapturedevice/localizedname.md)
- [manufacturer](avfoundation/avcapturedevice/manufacturer.md)
- [AVCaptureDevice.DeviceType](avfoundation/avcapturedevice/devicetype-swift.struct.md)
- [position](avfoundation/avcapturedevice/position-swift.property.md)
- [AVCaptureDevice.Position](avfoundation/avcapturedevice/position-swift.enum.md)
