---
title: xpc_handler_t
framework: xpc
role: symbol
role_heading: Type Alias
path: xpc/xpc_handler_t
---

# xpc_handler_t

The type of block that the XPC connection APIs accept.

## Declaration

```swift
typealias xpc_handler_t = (xpc_object_t) -> Void
```

## Discussion

Discussion You aren’t responsible for releasing the event object.

## See Also

### Event handling

- [xpc_connection_set_event_handler(_:_:)](xpc/xpc_connection_set_event_handler(_:_:).md)
- [xpc_connection_handler_t](xpc/xpc_connection_handler_t.md)
