# GCKPlayerInfo Class

[Instance Methods](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#pub-methods) \| [Properties](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#properties) GCKPlayerInfo Class Reference

## Overview

Represents data for a single player.

**[Deprecated:](https://developers.google.com/cast/v3/reference/ios/deprecated#_deprecated000034)**
:   The Game Manager API is no longer supported and will be removed in a future release.

Inherits NSObject.

|---|---|
| ## Instance Method Summary ||
| (instancetype) | - [init](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a89f3be2a574f25fdc46c6e5d7dd4d573) |
|   | Default initializer is not available. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a89f3be2a574f25fdc46c6e5d7dd4d573) |
|   ||

|---|---|
| ## Property Summary ||
| NSString \* | [playerID](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a44a8551b19bb66ee6b1530a6c9830ce3) |
|   | The unique string identifier of this player. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a44a8551b19bb66ee6b1530a6c9830ce3) |
|   ||
| [GCKPlayerState](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6) | [playerState](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a2f8fa3a0d0dce2d25d02b064ce56f7c5) |
|   | The current state of the player. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a2f8fa3a0d0dce2d25d02b064ce56f7c5) |
|   ||
| id | [playerData](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a2bf6c1907bdb9c3199555c368555c66e) |
|   | Player-specific data defined by the game. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a2bf6c1907bdb9c3199555c368555c66e) |
|   ||
| BOOL | [isConnected](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#ad78f0b377f667d189ad2cbcac3f26023) |
|   | True if this player is in a connected state. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#ad78f0b377f667d189ad2cbcac3f26023) |
|   ||
| BOOL | [isControllable](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a28257a72c946d2296617e619390be34c) |
|   | True if this player is was created on this sender device. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a28257a72c946d2296617e619390be34c) |
|   ||

## Method Detail

|---|---|---|---|
| - (instancetype) init |   |   |   |

Default initializer is not available.

## Property Detail

|---|---|
| |---| | - (NSString\*) playerID | | readnonatomiccopy |

The unique string identifier of this player.

|---|---|
| |---| | - ([GCKPlayerState](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6)) playerState | | readnonatomicassign |

The current state of the player.

|---|---|
| |---| | - (id) playerData | | readnonatomiccopy |

Player-specific data defined by the game.

This data is persisted while the game is running. Will be either an object that can be serialized to JSON using [**NSJSONSerialization**](https://goo.gl/0vd4Q2), or `nil`.

|---|---|
| |---| | - (BOOL) isConnected | | readnonatomicassign |

True if this player is in a connected state.

A player is considered to be in a connected state if the associated [GCKPlayerInfo::playerState](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_player_info#a2f8fa3a0d0dce2d25d02b064ce56f7c5 "The current state of the player. ") is one of [GCKPlayerStateAvailable](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6aa45be92bf9f623b97cd1451ba70b17fc), [GCKPlayerStateReady](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6a67c467391f891b6ca8cf79f1ce10b561), [GCKPlayerStateIdle](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6af675a8e49374d9b30e18589adbf4a687), or [GCKPlayerStatePlaying](https://developers.google.com/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6aa01672db33b85b34abc2d7f21518eb1a).

|---|---|
| |---| | - (BOOL) isControllable | | readnonatomicassign |

True if this player is was created on this sender device.