---
title: device()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothdevicepair/device()
---

# device()

Get the IOBluetoothDevice being used by the object.

## Declaration

```swift
func device() -> IOBluetoothDevice!
```

## Return Value

Return Value Device The IOBluetoothDevice object that the IOBluetoothDevicePair object is pairing with, as specified in -setDevice: or pairWithDevice:
