Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIGooglePlayServicesAndroid Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  connect
  isConnected
  showAchievements
  showLeaderboard
  submitScore
  unlockAchievement

Function Documentation

Connects to the Google Play Game Services.


function connect ()
Returns:
nil

Connects to the Google Play Game Services.


function isConnected ()
Returns:
nil

Shows the achievements.


function showAchievements ()
Returns:
nil

Shows the desired leaderboard.


function showLeaderboard ( string leaderboardID )
Parameters:
leaderboardID ( string )
Returns:
nil

Submits a score for the passed in leaderboard.


function submitScore ( string leaderboardID, number score )
Parameters:
leaderboardID ( string )
score ( number )
Returns:
nil

Grants an achievement to the player.


function unlockAchievement ( string achievementID )
Parameters:
achievementID ( string )
Returns:
nil