---
title: "init(incomingRFCOMMChannel:eventSelector:selectorTarget:refCon:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothobexsession/init(incomingrfcommchannel:eventselector:selectortarget:refcon:)"
---

# init(incomingRFCOMMChannel:eventSelector:selectorTarget:refCon:)

Initializes a Bluetooth-based OBEX Session using an incoming RFCOMM channel.

## Declaration

```swift
init!(incomingRFCOMMChannel inChannel: IOBluetoothRFCOMMChannel!, eventSelector inEventSelector: Selector!, selectorTarget inEventSelectorTarget: Any!, refCon inUserRefCon: UnsafeMutableRawPointer!)
```

## Parameters

- `inChannel`: RFCOMM channel ID of the desired channel to be used.
- `inEventSelector`: The selector to be called when an event is received.
- `inEventSelectorTarget`: The target object that get the selector message.
- `inUserRefCon`: Caller reference constant, pass whatever you want, it will be returned to you in the selector.

## See Also

### Initializers

- [init(device:channelID:)](iobluetooth/iobluetoothobexsession/init(device:channelid:).md)
- [init(sdpServiceRecord:)](iobluetooth/iobluetoothobexsession/init(sdpservicerecord:)-h1xg.md)
