---
title: "setEventSelector(_:target:refCon:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/obexsession/seteventselector(_:target:refcon:)"
---

# setEventSelector(_:target:refCon:)

Allow you to set a selector to be called when events occur on the OBEX session.

## Declaration

```swift
func setEventSelector(_ inEventSelector: Selector!, target inEventSelectorTarget: Any!, refCon inUserRefCon: UnsafeMutableRawPointer!)
```

## Parameters

- `inEventSelector`: Selector to call on the target.
- `inEventSelectorTarget`: Target to be called with the selector.
- `inUserRefCon`: User’s refCon that will get passed when their event callback is invoked.

## Discussion

Discussion Really not needed to be used, since the event selector will get set when an OBEX command is sent out.
