---
title: "handsFree(_:unhandledResultCode:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
platforms: [macOS 10.7+]
path: "iobluetooth/iobluetoothhandsfreedevicedelegate/handsfree(_:unhandledresultcode:)"
---

# handsFree(_:unhandledResultCode:)

Tells the delegate the phone sent an unknown code.

## Declaration

```swift
optional func handsFree(_ device: IOBluetoothHandsFreeDevice!, unhandledResultCode resultCode: String!)
```

## Parameters

- `device`: The connected Bluetooth hands-free phone or headset.
- `resultCode`: A string containing the result code. The “/r/n” strings are stripped from the beginning and end.

## See Also

### Receiving Other Information

- [handsFree(_:subscriberNumber:)](iobluetooth/iobluetoothhandsfreedevicedelegate/handsfree(_:subscribernumber:).md)
- [handsFree(_:ringAttempt:)](iobluetooth/iobluetoothhandsfreedevicedelegate/handsfree(_:ringattempt:).md)
