Enumeration

CHHapticEngine.StoppedReason

An enumeration of possible reasons the haptic engine stopped running.

Declaration

enum StoppedReason : Int

Topics

Enumeration Cases

case audioSessionInterrupt

The audio session was interrupted.

case applicationSuspended

The app with haptics was suspended.

case idleTimeout

The haptic engine timed out during a task.

case systemError

A system error stopped the engine.

case notifyWhenFinished

You've asked to be notified notifyWhenPlayersFinished shuts down the engine.

See Also

Handling Haptic Engine Stoppages

var stoppedHandler: CHHapticEngine.StoppedHandler

A block that the haptic engine calls when it stops due to external causes.

typealias CHHapticEngine.StoppedHandler

A typealias for the block that the haptic engine calls after it stops due to external causes.