---
title: "init(device:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothdevicepair/init(device:)"
---

# init(device:)

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

## Declaration

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

## Parameters

- `device`: An IOBluetoothDevice to attept to pair with. The device is retained.

## Return Value

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