---
title: AccessoryWorker.Handler
framework: Accessory Transport Extension
role: symbol
role_heading: Type Alias
platforms: [iOS 27.3+]
path: accessorytransportextension/accessoryworker/handler
---

# AccessoryWorker.Handler

A handler type for the session’s data provider.

## Declaration

```swift
typealias Handler = AccessoryFeatureSessionHandler<AccessoryWorker.Session>
```

## Discussion

Discussion Conform your data provider extension’s handler to this type to receive events from an AccessoryWorker.Session. Because each feature uses its own Handler type alias, the compiler rejects a handler for this feature if you pass it to AccessoryGPUWorker or another feature. Return an instance of your handler from the factory closure that you pass to init(_:).

## See Also

### Handling data-provider sessions

- [AccessoryWorker.Session](accessorytransportextension/accessoryworker/session.md)
