CHHapticEngine.StoppedHandler
A typealias for the block that the haptic engine calls after it stops due to an external cause.
Declaration
typealias StoppedHandler = (CHHapticEngine.StoppedReason) -> VoidDiscussion
The system calls the stopped handler for when it’s stopped by an external event like an audio session interruption or an auto-shutdown.