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

# init(device:delegate:)

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

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

## Parameters

`device`

A remote Bluetooth phone or headset.

`inDelegate`

A delegate that conforms to the [`IOBluetoothHandsFreeAudioGatewayDelegate`](/documentation/IOBluetooth/IOBluetoothHandsFreeAudioGatewayDelegate) protocol.

## 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)