<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/deviceType-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)deviceType"
  },
  "title" : "deviceType"
}
-->

# deviceType

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

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

## Discussion

Use the [`default(_:for:position:)`](/documentation/AVFoundation/AVCaptureDevice/default(_:for:position:)) method or the [`AVCaptureDevice.DiscoverySession`](/documentation/AVFoundation/AVCaptureDevice/DiscoverySession) class to find capture devices by device type.

---

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)