Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Player
InheritancePlayer Inheritance Object

Data interface for retrieving player information.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
displayNameproperty
displayName:String  [read-only]

Retrieves the display name for this player.


Implementation
    public function get displayName():String
hasHiResImageproperty 
hasHiResImage:Boolean  [read-only]

Indicates whether this player has a hi-res profile image to display.


Implementation
    public function get hasHiResImage():Boolean
hasIconImageproperty 
hasIconImage:Boolean  [read-only]

Indicates whether this player has an icon-size profile image to display.


Implementation
    public function get hasIconImage():Boolean
idproperty 
id:String  [read-only]

Retrieves the ID of this player.


Implementation
    public function get id():String
lastPlayedTimestampproperty 
lastPlayedTimestamp:Number  [read-only]

Retrieves the timestamp at which this player last played a multiplayer game with the currently signed in user.


Implementation
    public function get lastPlayedTimestamp():Number
levelInfoproperty 
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.


Implementation
    public function get levelInfo():PlayerLevelInfo
retrievedTimestampproperty 
retrievedTimestamp:Number  [read-only]

Retrieves the timestamp at which this player record was last updated locally.


Implementation
    public function get retrievedTimestamp():Number
titleproperty 
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.


Implementation
    public function get title():String
Method Detail
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.