Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Games
InheritanceGames Inheritance Object

Main entry point for the Games APIs. This class provides APIs and interfaces to access the Google Play game services functionality.



Public Properties
 PropertyDefined By
  achievements : Achievements
[static] [read-only] Returns an instance of Achievements class.
Games
  events : TheEvents
[static] [read-only] Returns an instance of TheEvents class.
Games
  invitations : Invitations
[static] [read-only] Returns an instance of Invitations class.
Games
  leaderboards : Leaderboards
[static] [read-only] Returns an instance of Leaderboards class.
Games
  listener : EventDispatcher
[static] [read-only] Use this property to listen to GamesEvents.CONNECT_SUCCESS and GamesEvents.CONNECT_FAILURE .
Games
  metadata : Metadata
[static] [read-only] Returns an instance of Metadata class.
Games
  notifications : Notifications
[static] [read-only] Returns an instance of Notifications class.
Games
  players : Players
[static] [read-only] Returns an instance of Players class.
Games
  realtime : RealTime
[static] [read-only] Returns an instance of RealTime class.
Games
  snapshots : Snapshots
[static] [read-only] Returns an instance of Snapshots class.
Games
Public Methods
 MethodDefined By
  
dismiss():void
[static]
Games
  
[static] Call this method as the first method before starting to use the GameServices ANE but call it after you are sure that the user is signed in your app using the GoogleSignin ANE.
Games
  
[static]
Games
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.gameServices
[static]
Games
  FAILURE : int = -1
[static]
Games
  PAGE_DIRECTION_NEXT : int = 0
[static] Direction advancing toward the end of the data set.
Games
  PAGE_DIRECTION_NONE : int = -1
[static] Constant indicating that no pagination is occurring.
Games
  PAGE_DIRECTION_PREV : int = 1
[static] Direction advancing toward the beginning of the data set.
Games
  SORT_ORDER_MOST_RECENT_FIRST : int = 0
[static] Sort multiplayer activities by their last-modified timestamp with most recent first.
Games
  SORT_ORDER_SOCIAL_AGGREGATION : int = 1
[static] Sort multiplayer activities such that activities from players in the user's circles are returned first.
Games
  SUCCESS : int = 0
[static]
Games
  VERSION : String = 5.0.0
[static]
Games
Property Detail
achievementsproperty
achievements:Achievements  [read-only]

Returns an instance of Achievements class.


Implementation
    public static function get achievements():Achievements
eventsproperty 
events:TheEvents  [read-only]

Returns an instance of TheEvents class.


Implementation
    public static function get events():TheEvents
invitationsproperty 
invitations:Invitations  [read-only]

Returns an instance of Invitations class.


Implementation
    public static function get invitations():Invitations
leaderboardsproperty 
leaderboards:Leaderboards  [read-only]

Returns an instance of Leaderboards class.


Implementation
    public static function get leaderboards():Leaderboards
listenerproperty 
listener:EventDispatcher  [read-only]

Use this property to listen to GamesEvents.CONNECT_SUCCESS and GamesEvents.CONNECT_FAILURE . When CONNECT_SUCCESS occurs, you can call other methods and classes of this ANE.


Implementation
    public static function get listener():EventDispatcher
metadataproperty 
metadata:Metadata  [read-only]

Returns an instance of Metadata class.


Implementation
    public static function get metadata():Metadata
notificationsproperty 
notifications:Notifications  [read-only]

Returns an instance of Notifications class.


Implementation
    public static function get notifications():Notifications
playersproperty 
players:Players  [read-only]

Returns an instance of Players class.


Implementation
    public static function get players():Players
realtimeproperty 
realtime:RealTime  [read-only]

Returns an instance of RealTime class.


Implementation
    public static function get realtime():RealTime
snapshotsproperty 
snapshots:Snapshots  [read-only]

Returns an instance of Snapshots class.


Implementation
    public static function get snapshots():Snapshots
Method Detail
dismiss()method
public static function dismiss():void

init()method 
public static function init():Games

Call this method as the first method before starting to use the GameServices ANE but call it after you are sure that the user is signed in your app using the GoogleSignin ANE.

Returns
Games
showSettingsWindow()method 
public static function showSettingsWindow():void

Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.gameServices

FAILUREConstant 
public static const FAILURE:int = -1

PAGE_DIRECTION_NEXTConstant 
public static const PAGE_DIRECTION_NEXT:int = 0

Direction advancing toward the end of the data set.

PAGE_DIRECTION_NONEConstant 
public static const PAGE_DIRECTION_NONE:int = -1

Constant indicating that no pagination is occurring.

PAGE_DIRECTION_PREVConstant 
public static const PAGE_DIRECTION_PREV:int = 1

Direction advancing toward the beginning of the data set.

SORT_ORDER_MOST_RECENT_FIRSTConstant 
public static const SORT_ORDER_MOST_RECENT_FIRST:int = 0

Sort multiplayer activities by their last-modified timestamp with most recent first.

SORT_ORDER_SOCIAL_AGGREGATIONConstant 
public static const SORT_ORDER_SOCIAL_AGGREGATION:int = 1

Sort multiplayer activities such that activities from players in the user's circles are returned first.

SUCCESSConstant 
public static const SUCCESS:int = 0

VERSIONConstant 
public static const VERSION:String = 5.0.0