C++

Example call

SonarCocosHelper::GooglePlayServices::methodToCall( );

Check if the user is signed in

static bool isSignedIn( );

Sign the user in

static void signIn( );

Sign the user out

static void signOut();

Submit score to online leaderboard

static void submitScore( const char *leaderboardID, long score );

Unlock achievement

static void unlockAchievement( const char *achievementID );

Increment incremental achievement

static void incrementAchievement( const char *achievementID, int numSteps );

Show the achievements

static void showAchievements( );

Show leaderboards

static void showLeaderboards( );

Show leaderboard

static void showLeaderboard( const char *leaderboardID );

JavaScript

Example call

SonarCocosHelper.GooglePlayServices.methodToCall( );

Check if the user is signed in

SonarCocosHelper.GooglePlayServices.isSignedIn = function ( )

Sign the user in

SonarCocosHelper.GooglePlayServices.signIn = function ( )

Sign the user out

SonarCocosHelper.GooglePlayServices.signOut = function ( )

Submit score to online leaderboard

SonarCocosHelper.GooglePlayServices.submitScore = function ( leaderboardID, score )

Unlock achievement

SonarCocosHelper.GooglePlayServices.unlockAchievement = function ( achievementID )

Increment incremental achievement

SonarCocosHelper.GooglePlayServices.incrementAchievement = function ( achievementID, numSteps )

Show the achievements

SonarCocosHelper.GooglePlayServices.showAchievements = function ( )

Show leaderboards

SonarCocosHelper.GooglePlayServices.showLeaderboard = function ( leaderboardID )

Show leaderboard

SonarCocosHelper.GooglePlayServices.showLeaderboards = function ( )