---
title: GKBasePlayer
framework: gamekit
role: symbol
role_heading: Class
path: gamekit/gkbaseplayer
---

# GKBasePlayer

A class that provides common data and methods for the different player objects.

## Declaration

```swift
class GKBasePlayer
```

## Overview

Overview GKBasePlayer is the abstract superclass for the classes that represent the local player running your app and remote players who may join their games. Use the GKLocalPlayer subclass to initialize the local player who runs your app on their device. Then you can access the local player’s nickname, avatar, leaderboards, and achievements. You can also invite other players (GKPlayer objects), and send information between players.

## Topics

### Identifying a Player

- [displayName](gamekit/gkbaseplayer/displayname.md)
- [playerID](gamekit/gkbaseplayer/playerid.md)

## Relationships

### Inherits From

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

### Inherited By

- [GKCloudPlayer](gamekit/gkcloudplayer.md)
- [GKPlayer](gamekit/gkplayer.md)

### Conforms To

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

## See Also

### Players

- [Connecting players with their friends in your game](gamekit/connecting-players-with-their-friends-in-your-game.md)
- [Saving the player’s game data to an iCloud account](gamekit/saving-the-player-s-game-data-to-an-icloud-account.md)
- [Protecting the player’s privacy using scoped identifiers](gamekit/protecting-the-player-s-privacy-using-scoped-identifiers.md)
- [GKLocalPlayer](gamekit/gklocalplayer.md)
- [GKPlayer](gamekit/gkplayer.md)
- [GKLocalPlayerListener](gamekit/gklocalplayerlistener.md)
- [GKPlayerAuthenticationDidChangeNotificationName](foundation/nsnotification/name-swift.struct/gkplayerauthenticationdidchangenotificationname.md)
- [GKPlayerDidChangeNotificationName](foundation/nsnotification/name-swift.struct/gkplayerdidchangenotificationname.md)
