stoppedHandler
A closure the haptic engine calls when it stops due to external causes.
Declaration
var stoppedHandler: CHHapticEngine.StoppedHandler { get set }Mentioned in
Discussion
External causes that can cause the system to call this closure include audio session interruptions, app suspensions, or system errors. Calling stop(completionHandler:) doesn’t invoke this callback.
Callbacks to this closure don’t occur on the main thread, so handle them in a thread-safe manner.