pushHandler(_:)
Register a type that can handle push tokens changing for controls of this type.
Declaration
@MainActor @preconcurrency func pushHandler(_ pushHandlerType: any ControlPushHandler.Type) -> some ControlWidgetConfiguration
Parameters
- pushHandlerType:
The type of the object that can handle push tokens you use to update the control with push notifications.
Overview
Use this to opt your control into using push notifications.
If you have multiple control types, you can choose to use the same push handler type for those control types.
When the push configuration of your controls changes, each handler type will be instantiated and pushTokensDidChange(controls:) will be called.