<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKInvite",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKInvite"
  },
  "title" : "GKInvite"
}
-->

# GKInvite

An invitation to join a match sent to the local player from another player.

```
class GKInvite
```

## Overview

Your game never directly creates `GKInvite` objects. Instead, these objects are created by GameKit and delivered to your game’s matchmaking event handler. The properties of the invitation object describe the match to which another player invites the local player.

## Topics

### Getting Properties

[`sender`](/documentation/GameKit/GKInvite/sender)

The player who sends the invitation.

[`playerAttributes`](/documentation/GameKit/GKInvite/playerAttributes)

The player attributes for the match.

[`playerGroup`](/documentation/GameKit/GKInvite/playerGroup)

The player group for the match.

[`hosted`](/documentation/GameKit/GKInvite/isHosted)

A Boolean value that indicates whether you host the game on your own servers.

[`inviter`](/documentation/GameKit/GKInvite/inviter)

The identifier for the player who sends the invitation.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)