Tells an activity to stop or pause recording duration and progress for a task.
- iOS 11.4+
If your app uses this method to pause recording, such as when the user taps the pause button in a game, you can resume later with another call to
start() on the same activity when the user resumes the task associated with the activity. But if the user 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
create, then the framework stops the old one permanently and makes it inaccessible to your app thereafter.