---
title: deviceClassMajor
framework: IOBluetooth
role: symbol
role_heading: Instance Property
path: iobluetooth/iobluetoothdevice/deviceclassmajor
---

# deviceClassMajor

Get the major device class of the device.

## Declaration

```swift
var deviceClassMajor: BluetoothDeviceClassMajor { get }
```

## Discussion

Discussion This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of -getLastInquiryUpdate. If nil is returned, then the device hasn’t been seen.
