Allows you to set the selector to be used when a transport connection is opened, or fails to open.
SDK
- macOS 10.2+
Framework
- IOBluetooth
Declaration
func setOpenTransportConnectionAsyncSelector(_ inSelector: Selector!, target inSelectorTarget: Any!, refCon inUserRefCon: Any!)
Parameters
inEventSelector
Selector to call on the target.
inEventSelectorTarget
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.