Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (((GPGManager) GPGManager.sharedInstance()).isSignedIn()) {
GPGScore score = GPGScore.scoreWithLeaderboardId("my_leaderboard_id");
score.setValue(42);
score.submitScoreWithCompletionHandler(new GPGScore.Block_submitScoreWithCompletionHandler() {
@Override
public void call_submitScoreWithCompletionHandler(GPGScoreReport gpgScoreReport, NSError nsError) {
if (nsError != null) {
Log.d("error on submitting high score");
} else {
Log.d("successfully submitted high score");
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment