| Package | com.myflashlab.air.extensions.googleGames |
| Class | public class Metadata |
| Inheritance | Metadata flash.events.EventDispatcher |
| Method | Defined 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 | ||
| currentGame | () | method |
public function currentGame($callback:Function):voidloads 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):voidloads 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
|