GPGPlayer Class Reference

GPGPlayer Class Reference

Overview

The representation of a Google Play Games player.

Static Public Member Functions

(void) + localPlayerWithCompletionHandler:
 Returns the currently signed in player.
(void) + localPlayerFromDataSource:completionHandler:
 Returns the currently signed in player.
(void) + recentlyPlayedPlayersWithCompletionHandler:
 Returns players who recently played with the currently signed in player.
(void) + recentlyPlayedPlayersFromDataSource:completionHandler:
 Returns players who recently played with the currently signed in player.
(void) + connectedPlayersWithCompletionHandler:
 Returns players who are in the circles of the currently signed in player and also play this game.
(void) + connectedPlayersFromDataSource:completionHandler:
 Returns players who are in the circles of the currently signed in player and also play this game.

Properties

NSURL * imageUrl
 The URL of the image resource.
NSString * displayName
 The display name of this player.
NSString * playerId
 The ID representing this player.
NSString * title
 The player's title rewarded by experience points stats.
int64_t currentExperiencePoints
 The current experience points accumulated by the player.
int64_t lastLevelUpTimestamp
 Time the player last leveled up in milliseconds since epoch UTC.
GPGPlayerLevelcurrentLevel
 If currentLevel is the maximum level, nextLevel will be equal to currentLevel.

Member Function Documentation

+ (void) localPlayerWithCompletionHandler: (GPGPlayerGetBlock)  completionHandler

Returns the currently signed in player.

Parameters:
completionHandlerA block in the form: ^(GPGPlayer *player, NSError *error)
+ (void) localPlayerFromDataSource: (GPGDataSource)  dataSource
completionHandler: (GPGPlayerGetBlock)  completionHandler 

Returns the currently signed in player.

Parameters:
dataSourceThe data source from where to load.
completionHandlerA block in the form: ^(GPGPlayer *player, NSError *error)
+ (void) recentlyPlayedPlayersWithCompletionHandler: (GPGPlayersGetBlock)  completionHandler

Returns players who recently played with the currently signed in player.

Parameters:
completionHandlerA block in the form: ^(NSArray *players, NSError *error)
+ (void) recentlyPlayedPlayersFromDataSource: (GPGDataSource)  dataSource
completionHandler: (GPGPlayersGetBlock)  completionHandler 

Returns players who recently played with the currently signed in player.

Parameters:
dataSourceThe data source from where to load.
completionHandlerA block in the form: ^(NSArray *players, NSError *error)
+ (void) connectedPlayersWithCompletionHandler: (GPGPlayersGetBlock)  completionHandler

Returns players who are in the circles of the currently signed in player and also play this game.

Parameters:
completionHandlerA block in the form: ^(NSArray *players, NSError *error)
+ (void) connectedPlayersFromDataSource: (GPGDataSource)  dataSource
completionHandler: (GPGPlayersGetBlock)  completionHandler 

Returns players who are in the circles of the currently signed in player and also play this game.

Parameters:
dataSourceThe data source from where to load.
completionHandlerA block in the form: ^(NSArray *players, NSError *error)

Property Documentation

- (NSURL *) imageUrl [read, copy]

The URL of the image resource.

Override URL getters to include a default size.

- (NSString*) displayName [read, copy]

The display name of this player.

- (NSString*) playerId [read, copy]

The ID representing this player.

- (NSString*) title [read, copy]

The player's title rewarded by experience points stats.

- (int64_t) currentExperiencePoints [read, assign]

The current experience points accumulated by the player.

- (int64_t) lastLevelUpTimestamp [read, assign]

Time the player last leveled up in milliseconds since epoch UTC.

- (GPGPlayerLevel*) currentLevel [read, copy]

If currentLevel is the maximum level, nextLevel will be equal to currentLevel.

Оставить отзыв о...

Текущей странице
Play Games Services for iOS
Play Games Services for iOS