---
title: GKInvite
framework: gamekit
role: symbol
role_heading: Class
path: gamekit/gkinvite
---

# GKInvite

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

## Declaration

```swift
class GKInvite
```

## Mentioned in

Finding players for custom server-based games

## Overview

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](gamekit/gkinvite/sender.md)
- [playerAttributes](gamekit/gkinvite/playerattributes.md)
- [playerGroup](gamekit/gkinvite/playergroup.md)
- [isHosted](gamekit/gkinvite/ishosted.md)
- [inviter](gamekit/gkinvite/inviter.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Real-time games

- [Creating real-time games](gamekit/creating-real-time-games.md)
- [Finding multiple players for a game](gamekit/finding-multiple-players-for-a-game.md)
- [Exchanging data between players in real-time games](gamekit/exchanging-data-between-players-in-real-time-games.md)
- [Adding voice chat to multiplayer games](gamekit/adding-voice-chat-to-multiplayer-games.md)
- [Finding players for custom server-based games](gamekit/finding-players-for-custom-server-based-games.md)
- [Matchmaking rules](gamekit/matchmaking-rules.md)
- [GKMatchRequest](gamekit/gkmatchrequest.md)
- [GKMatchmaker](gamekit/gkmatchmaker.md)
- [GKMatchmakerViewController](gamekit/gkmatchmakerviewcontroller.md)
- [GKInviteEventListener](gamekit/gkinviteeventlistener.md)
- [GKMatch](gamekit/gkmatch.md)
