---
title: "finishMatchmaking(for:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkmatchmaker/finishmatchmaking(for:)"
---

# finishMatchmaking(for:)

Informs the server when programmatic matchmaking finishes.

## Declaration

```swift
func finishMatchmaking(for match: GKMatch)
```

## Parameters

- `match`: The match that you are ready to start.

## Mentioned in

Finding multiple players for a game

## Discussion

Discussion If you need to call the addPlayers(to:matchRequest:completionHandler:) method to fill the slots in an existing match, call the finishMatchmaking(for:) method when you have enough players and before you begin the match.

## See Also

### Matching players

- [findMatch(for:withCompletionHandler:)](gamekit/gkmatchmaker/findmatch(for:withcompletionhandler:).md)
- [findPlayers(forHostedRequest:withCompletionHandler:)](gamekit/gkmatchmaker/findplayers(forhostedrequest:withcompletionhandler:).md)
- [findMatchedPlayers(_:withCompletionHandler:)](gamekit/gkmatchmaker/findmatchedplayers(_:withcompletionhandler:).md)
- [GKMatchedPlayers](gamekit/gkmatchedplayers.md)
- [addPlayers(to:matchRequest:completionHandler:)](gamekit/gkmatchmaker/addplayers(to:matchrequest:completionhandler:).md)
- [cancel()](gamekit/gkmatchmaker/cancel().md)
- [cancelPendingInvite(to:)](gamekit/gkmatchmaker/cancelpendinginvite(to:).md)
