<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothDevicePair/setDevice(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothDevicePair(im)setDevice:"
  },
  "title" : "setDevice(_:)"
}
-->

# setDevice(_:)

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

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

## Parameters

`inDevice`

The IOBluetoothDevice object that the IOBluetoothDevicePair object with which to perform a pairing.

---

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)