<!--
{
  "availability" : [
    "iOS: 11.3.0 -",
    "iPadOS: 11.3.0 -",
    "macCatalyst: 11.3.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSActivity/stop()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSActivity(im)stop"
  },
  "title" : "stop()"
}
-->

# stop()

Tells an activity to stop or pause recording duration and progress for a task.

```
func stop()
```

## Discussion

If your app uses this method to pause recording, such as when the person taps Pause in a game, you can resume later with another call to [`start()`](/documentation/ClassKit/CLSActivity/start()) on the same activity when they resume the task associated with the activity. If the person makes a new attempt at the task — for example, by starting a game level over, and your app creates a new activity with a call to [`createNewActivity()`](/documentation/ClassKit/CLSContext/createNewActivity()) — then the framework stops the old one permanently and makes it inaccessible to your app thereafter.

---

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)