---
title: "setDevice(_:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/iobluetoothdevicepair/setdevice(_:)"
---

# setDevice(_:)

Set the device object to pair with. It is retained by the object.

## Declaration

```swift
func setDevice(_ inDevice: IOBluetoothDevice!)
```

## Parameters

- `inDevice`: The IOBluetoothDevice object that the IOBluetoothDevicePair object with which to perform a pairing.
