Contents

AccessoryWorker.FeatureSession.Handler

A handler type for the session’s transport extension.

Declaration

typealias Handler = AccessoryFeatureRuntimeSessionHandler<AccessoryWorker.FeatureSession>

Mentioned in

Discussion

Create a handler type that conforms to this type alias to receive events from an AccessoryWorker.FeatureSession. Because each feature declares its own Handler type alias, your transport extension needs a distinct handler type for each feature it supports: the compiler rejects a handler written for AccessoryGPUWorker.FeatureSession if you pass it to this feature’s session, or any other feature’s session. Return an instance of your handler from the factory closure that you pass to makeFeatureSession(_:).