<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopGame/MultiplayerDelegate-swift.protocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A4GameC19MultiplayerDelegateP"
  },
  "title" : "TabletopGame.MultiplayerDelegate"
}
-->

# TabletopGame.MultiplayerDelegate

An object that handles players joining multiplayer games.

```
protocol MultiplayerDelegate : AnyObject
```

## Topics

### Joining games

[`func joinAccepted()`](/documentation/TabletopKit/TabletopGame/MultiplayerDelegate-swift.protocol/joinAccepted())

We tried to join a game and got accepted

[`func playerJoined(PlayerIdentifier)`](/documentation/TabletopKit/TabletopGame/MultiplayerDelegate-swift.protocol/playerJoined(_:))

A player joined our multiplayer session

### Handling errors

[`func didRejectPlayer(PlayerIdentifier, reason: any Error)`](/documentation/TabletopKit/TabletopGame/MultiplayerDelegate-swift.protocol/didRejectPlayer(_:reason:))

A player that tried to join was rejected or
a player that previously joined our game was ejected.

[`func multiplayerSessionFailed(reason: any Error)`](/documentation/TabletopKit/TabletopGame/MultiplayerDelegate-swift.protocol/multiplayerSessionFailed(reason:))

We failed to start or join a new multiplayer session or
had to terminate a previously started multiplayer session.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)