<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothDevicePair/init(device:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothDevicePair(cm)pairWithDevice:"
  },
  "title" : "init(device:)"
}
-->

# init(device:)

Creates an autorelease IOBluetoothDevicePair object with a device as the pairing target.

```
convenience init!(device: IOBluetoothDevice!)
```

## Parameters

`device`

An IOBluetoothDevice to attept to pair with. The device is retained.

## Return Value

Returns an IOReturn or Bluetooth error code, if the pairing could not be started.

## Discussion

---

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)