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

# init(device:delegate:)

Create a new IOBluetoothHandsFree object

```
init!(device: IOBluetoothDevice!, delegate inDelegate: (any IOBluetoothHandsFreeDelegate)!)
```

## Parameters

`device`

An IOBluetoothDevice

`inDelegate`

An object to act as delegate that implements the IOBluetoothHandsFreeDelegate protocol.

## Return Value

A newly created IOBluetoothHandsFreeAudioGateway object on success, nil on failure

## Discussion

This method should be called on a subclass (IOBluetoothHandsFreeDevice or IOBluetoothHandsFreeAudioGateway) to get full functionality.

---

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)