init(_:)
Creates an object you use to manage Live Activity forwarding for your accessory.
Declaration
init(_ handlerFactory: @escaping @Sendable () -> any LiveActivityForwarding.AccessoryLiveActivitiesHandler)Parameters
- handlerFactory:
A closure that creates one new Accessoryliveactivitieshandler instance for each new Live Activity session.
Overview
The system calls the handler factory closure once for each Live Activity session and creates a new corresponding handler instance that receives updates for the life cycle of the Live Activity session.