---
title: stopGroupActivity()
framework: gamekit
role: symbol
role_heading: Instance Method
path: gamekit/gkmatchmaker/stopgroupactivity()
---

# stopGroupActivity()

Ends a SharePlay activity for the entire group, which the local player activates.

## Declaration

```swift
func stopGroupActivity()
```

## Discussion

Discussion Use this method to stop showing a group activity in SharePlay that players use to join a match. This method doesn’t quit the match in your game that players previously join using SharePlay. Players can also stop a group activity using the SharePlay interface. To start showing a group activity in SharePlay, present a GKMatchmakerViewController object where the player can select SharePlay to invite players, or call the startGroupActivity(playerHandler:) method.

## See Also

### Starting matches using SharePlay

- [startGroupActivity(playerHandler:)](gamekit/gkmatchmaker/startgroupactivity(playerhandler:).md)
