Contents

stop()

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

Declaration

func stop()

Mentioned in

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