GCKPlayerInfo Class

GCKPlayerInfo Class Reference

Overview

Represents data for a single player.

Inherits NSObject.

Properties

NSString * playerID
 The unique string identifier of this player. More...
 
GCKPlayerState playerState
 The current state of the player. More...
 
id playerData
 Player-specific data defined by the game. More...
 
BOOL isConnected
 True if this player is in a connected state. More...
 
BOOL isControllable
 True if this player is was created on this sender device. More...
 

Property Documentation

- (NSString*) playerID
readnonatomiccopy

The unique string identifier of this player.

- (GCKPlayerState) 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, 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 is one of GCKPlayerStateAvailable, GCKPlayerStateReady, GCKPlayerStateIdle or GCKPlayerStatePlaying.

- (BOOL) isControllable
readnonatomicassign

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

Google Cast iOS Sender API Reference v 2.10.1 4691