<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticEngine/StoppedHandler-swift.typealias",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Haptics",
      "CoreHaptics"
    ],
    "preciseIdentifier" : "c:@T@CHHapticEngineStoppedHandler"
  },
  "title" : "CHHapticEngine.StoppedHandler"
}
-->

# CHHapticEngine.StoppedHandler

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

```
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.

> Note:
> The stopped handler isn’t called if you explicitly stop the engine by calling the ``doc://com.apple.corehaptics/documentation/CoreHaptics/CHHapticEngine/stop(completionHandler:)`` method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)