---
title: "withRFCOMMChannelRef(_:)"
framework: IOBluetooth
role: symbol
role_heading: Type Method
path: "iobluetooth/iobluetoothrfcommchannel/withrfcommchannelref(_:)"
---

# withRFCOMMChannelRef(_:)

Method call to convert an IOBluetoothRFCOMMChannelRef into an IOBluetoothRFCOMMChannel *.

## Declaration

```swift
class func withRFCOMMChannelRef(_ rfcommChannelRef: IOBluetoothRFCOMMChannelRef!) -> Self!
```

## Parameters

- `rfcommChannelRef`: IOBluetoothRFCOMMChannelRef for which an IOBluetoothRFCOMMChannel * is desired.

## Return Value

Return Value Returns the IOBluetoothRFCOMMChannel * for the given IOBluetoothRFCOMMChannelRef.
