<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothOBEXSession/setOpenTransportConnectionAsyncSelector(_:target:refCon:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothOBEXSession(im)setOpenTransportConnectionAsyncSelector:target:refCon:"
  },
  "title" : "setOpenTransportConnectionAsyncSelector(_:target:refCon:)"
}
-->

# setOpenTransportConnectionAsyncSelector(_:target:refCon:)

Allows you to set the selector to be used when a transport connection is opened, or fails to open.

```
func setOpenTransportConnectionAsyncSelector(_ inSelector: Selector!, target inSelectorTarget: Any!, refCon inUserRefCon: UnsafeMutableRawPointer!)
```

## Parameters

`inSelector`

Selector to call on the target.

`inSelectorTarget`

Target to be called with the selector.

`inUserRefCon`

User’s refCon that will get passed to them when their selector is invoked.

## Discussion

You do not need to call this on the session typically, unless you have subclassed the OBEXSession to implement a new transport and that transport supports async opening of connections. If it does not support async open, then using this is pointless.

---

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)