Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GKScore gkScore = GKScore.alloc();
gkScore = gkScore.initWithLeaderboardIdentifier("my.identifier");
gkScore.setValue(42);
NSArray<GKScore> nsArray = (NSArray<GKScore>) NSArray.arrayWithObject(gkScore);
GKScore.reportScoresWithCompletionHandler(nsArray, new GKScore.Block_reportScoresWithCompletionHandler() {
@Override
public void call_reportScoresWithCompletionHandler(NSError nsError) {
if (nsError != null) {
//submitted score not successfully
} else {
//submitted score successfully
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment