Contents

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) -> Void

Discussion

The system calls the stopped handler for when it’s stopped by an external event like an audio session interruption or an auto-shutdown.

See Also

Handling Haptic Engine Stoppages