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

# AccessoryGPUWorker.Handler

A handler type for the session’s data provider.

## Declaration

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

## Mentioned in

Sending data to an accessory in the background

## Discussion

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

## See Also

### Handling data-provider sessions

- [AccessoryGPUWorker.Session](accessorytransportextension/accessorygpuworker/session.md)
