---
title: classOfDevice()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothhostcontroller/classofdevice()
---

# classOfDevice()

Gets the current class of device value.

## Declaration

```swift
func classOfDevice() -> BluetoothClassOfDevice
```

## Return Value

Return Value Returns the current class of device value.
