A block that the haptic engine calls after recovering from a haptic server error.
- iOS 13.0+
- Mac Catalyst 13.0+
- Core Haptics
If the handler has to reset itself after a server failure, the system calls this block asynchronously. In this block, release all haptic pattern players and recreate them. The system preserves
CHHaptic objects and
CHHaptic properties across restarts. Consider trying to restart the engine inside the reset block.
Callbacks to this block arrive on a non-main thread, so handle them in a thread-safe manner.