---
title: stop()
framework: classkit
role: symbol
role_heading: Instance Method
path: classkit/clsactivity/stop()
---

# stop()

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

## Declaration

```swift
func stop()
```

## Mentioned in

Recording student progress Recording additional metrics about a completed task

## Discussion

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() 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() — then the framework stops the old one permanently and makes it inaccessible to your app thereafter.

## See Also

### Starting and stopping an activity

- [start()](classkit/clsactivity/start().md)
- [isStarted](classkit/clsactivity/isstarted.md)
- [duration](classkit/clsactivity/duration.md)
