Package | com.myflashlab.air.extensions.googleGames |
Class | public class Player |
Inheritance | Player Object |
Property | Defined By | ||
---|---|---|---|
displayName : String [read-only]
Retrieves the display name for this player. | Player | ||
hasHiResImage : Boolean [read-only]
Indicates whether this player has a hi-res profile image to display. | Player | ||
hasIconImage : Boolean [read-only]
Indicates whether this player has an icon-size profile image to display. | Player | ||
id : String [read-only]
Retrieves the ID of this player. | Player | ||
lastPlayedTimestamp : Number [read-only]
Retrieves the timestamp at which this player last played a multiplayer game with the currently signed in user. | Player | ||
levelInfo : PlayerLevelInfo [read-only]
Retrieves the player level associated information if any exists. | Player | ||
retrievedTimestamp : Number [read-only]
Retrieves the timestamp at which this player record was last updated locally. | Player | ||
title : String [read-only]
Retrieves the title of the player. | Player |
Method | Defined By | ||
---|---|---|---|
loadBannerLandscape($forceReload:Boolean, $callback:Function):void | Player | ||
loadBannerPortrait($forceReload:Boolean, $callback:Function):void | Player | ||
loadHiResImg($forceReload:Boolean, $callback:Function):void | Player | ||
loadIconImg($forceReload:Boolean, $callback:Function):void | Player |
displayName | property |
displayName:String
[read-only] Retrieves the display name for this player.
public function get displayName():String
hasHiResImage | property |
hasHiResImage:Boolean
[read-only] Indicates whether this player has a hi-res profile image to display.
public function get hasHiResImage():Boolean
hasIconImage | property |
hasIconImage:Boolean
[read-only] Indicates whether this player has an icon-size profile image to display.
public function get hasIconImage():Boolean
id | property |
id:String
[read-only] Retrieves the ID of this player.
public function get id():String
lastPlayedTimestamp | property |
lastPlayedTimestamp:Number
[read-only] Retrieves the timestamp at which this player last played a multiplayer game with the currently signed in user.
public function get lastPlayedTimestamp():Number
levelInfo | property |
levelInfo:PlayerLevelInfo
[read-only] Retrieves the player level associated information if any exists. If no level information exists for this player, this method will return null.
public function get levelInfo():PlayerLevelInfo
retrievedTimestamp | property |
retrievedTimestamp:Number
[read-only] Retrieves the timestamp at which this player record was last updated locally.
public function get retrievedTimestamp():Number
title | property |
title:String
[read-only] Retrieves the title of the player. This is based on the player's gameplay activity in apps using Google Play Games services. Note that not all players have titles, and that a player's title may change over time.
public function get title():String
loadBannerLandscape | () | method |
public function loadBannerLandscape($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|
loadBannerPortrait | () | method |
public function loadBannerPortrait($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|
loadHiResImg | () | method |
public function loadHiResImg($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|
loadIconImg | () | method |
public function loadIconImg($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|