Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Players
InheritancePlayers Inheritance flash.events.EventDispatcher

A client to interact with Players.



Public Properties
 PropertyDefined By
  player : Player
[read-only] loads the current signed-in Player.
Players
Public Methods
 MethodDefined By
  
loadMoreRecentlyPlayedWithPlayers($pageSize:int, $callback:Function):void
loads an Array of Player instances that represents players the user has interacted with recently, starting with the most recent.
Players
  
loadPlayerStats($forceReload:Boolean, $callback:Function):void
loads an instance of PlayerStats for the currently signed-in player and game
Players
  
loadRecentlyPlayedWithPlayers($pageSize:int, $forceReload:Boolean, $callback:Function):void
loads an Array of Player instances that represents players the user has interacted with recently, starting with the most recent.
Players
Property Detail
playerproperty
player:Player  [read-only]

loads the current signed-in Player.


Implementation
    public function get player():Player
Method Detail
loadMoreRecentlyPlayedWithPlayers()method
public function loadMoreRecentlyPlayedWithPlayers($pageSize:int, $callback:Function):void

loads an Array of Player instances that represents players the user has interacted with recently, starting with the most recent.

Parameters

$pageSize:int
 
$callback:Function — Expects one param as Array. if the Array.length less than 1 means there are no players to load

loadPlayerStats()method 
public function loadPlayerStats($forceReload:Boolean, $callback:Function):void

loads an instance of PlayerStats for the currently signed-in player and game

Parameters

$forceReload:Boolean
 
$callback:Function — Expects two params, stats as PlayerStats and err as Error

loadRecentlyPlayedWithPlayers()method 
public function loadRecentlyPlayedWithPlayers($pageSize:int, $forceReload:Boolean, $callback:Function):void

loads an Array of Player instances that represents players the user has interacted with recently, starting with the most recent.

Parameters

$pageSize:int
 
$forceReload:Boolean
 
$callback:Function — Expects one param as Array. if the Array.length less than 1 means there are no players to load