---
title: "init(device:delegate:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
platforms: [macOS 10.7+]
path: "iobluetooth/iobluetoothhandsfreeaudiogateway/init(device:delegate:)"
---

# init(device:delegate:)

Creates an object that controls a connected Bluetooth hands-free phone or headset.

## Declaration

```swift
init!(device: IOBluetoothDevice!, delegate inDelegate: Any!)
```

## Parameters

- `device`: A remote Bluetooth phone or headset.
- `inDelegate`: A delegate that conforms to the doc://com.apple.iobluetooth/documentation/IOBluetooth/IOBluetoothHandsFreeAudioGatewayDelegate protocol.
