Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Metadata
InheritanceMetadata Inheritance flash.events.EventDispatcher

A client to receive GamesMetadata.



Public Methods
 MethodDefined By
  
currentGame($callback:Function):void
loads the Game metadata for the current game from the local cache.
Metadata
  
getAppId($callback:Function):void
loads the application ID linked to this client instance.
Metadata
  
getCurrentAccountName($callback:Function):void
loads the name of the currently selected account.
Metadata
Method Detail
currentGame()method
public function currentGame($callback:Function):void

loads the Game metadata for the current game from the local cache.

Parameters

$callback:Function — Expects two params. $game as Game and $error as Error

getAppId()method 
public function getAppId($callback:Function):void

loads the application ID linked to this client instance.

Parameters

$callback:Function — Expects two params. $appId as String and $error as Error

getCurrentAccountName()method 
public function getCurrentAccountName($callback:Function):void

loads the name of the currently selected account. This is the account the user has chosen to use for Google Play Games.

Note that your app must have <uses-permission android:name="android.permission.GET_ACCOUNTS" /> declared in your manifest in order to use this method. Otherwise the Task will fail.

Parameters

$callback:Function — Expects two params. $accountName as String and $error as Error