---
title: "setOBEXSessionOpenConnectionCallback(_:refCon:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/iobluetoothobexsession/setobexsessionopenconnectioncallback(_:refcon:)"
---

# setOBEXSessionOpenConnectionCallback(_:refCon:)

For C API support. Allows you to set the callback to be invoked when the OBEX connection is actually opened.

## Declaration

```swift
func setOBEXSessionOpenConnectionCallback(_ inCallback: IOBluetoothOBEXSessionOpenConnectionCallback!, refCon inUserRefCon: UnsafeMutableRawPointer!)
```

## Parameters

- `inCallback`: Function to call on the target.
- `inUserRefCon`: User’s reference constant, will be returned on the callback.
