public class Games
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
The Google Play Games Service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more.
For more information about this service, see the API Documentation
This service uses GamesRequestInitializer to initialize global parameters via its
Games.Builder.
| Modifier and Type | Class and Description |
|---|---|
class |
Games.Accesstokens
The "accesstokens" collection of methods.
|
class |
Games.AchievementDefinitions
The "achievementDefinitions" collection of methods.
|
class |
Games.Achievements
The "achievements" collection of methods.
|
class |
Games.Applications
The "applications" collection of methods.
|
static class |
Games.Builder
Builder for
Games. |
class |
Games.Events
The "events" collection of methods.
|
class |
Games.Leaderboards
The "leaderboards" collection of methods.
|
class |
Games.Metagame
The "metagame" collection of methods.
|
class |
Games.Players
The "players" collection of methods.
|
class |
Games.Recall
The "recall" collection of methods.
|
class |
Games.Revisions
The "revisions" collection of methods.
|
class |
Games.Scores
The "scores" collection of methods.
|
class |
Games.Snapshots
The "snapshots" collection of methods.
|
class |
Games.Stats
The "stats" collection of methods.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
static String |
DEFAULT_MTLS_ROOT_URL
The default encoded mTLS root URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
| Constructor and Description |
|---|
Games(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Games.Accesstokens |
accesstokens()
An accessor for creating requests from the Accesstokens collection.
|
Games.AchievementDefinitions |
achievementDefinitions()
An accessor for creating requests from the AchievementDefinitions collection.
|
Games.Achievements |
achievements()
An accessor for creating requests from the Achievements collection.
|
Games.Applications |
applications()
An accessor for creating requests from the Applications collection.
|
Games.Events |
events()
An accessor for creating requests from the Events collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Games.Leaderboards |
leaderboards()
An accessor for creating requests from the Leaderboards collection.
|
Games.Metagame |
metagame()
An accessor for creating requests from the Metagame collection.
|
Games.Players |
players()
An accessor for creating requests from the Players collection.
|
Games.Recall |
recall()
An accessor for creating requests from the Recall collection.
|
Games.Revisions |
revisions()
An accessor for creating requests from the Revisions collection.
|
Games.Scores |
scores()
An accessor for creating requests from the Scores collection.
|
Games.Snapshots |
snapshots()
An accessor for creating requests from the Snapshots collection.
|
Games.Stats |
stats()
An accessor for creating requests from the Stats collection.
|
getJsonFactory, getObjectParserbatch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks, getUniverseDomain, validateUniverseDomainpublic static final String DEFAULT_ROOT_URL
public static final String DEFAULT_MTLS_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BATCH_PATH
public static final String DEFAULT_BASE_URL
public Games(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Games.Builder if you need to specify any of the optional parameters.
transport - HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransportnewCompatibleTransport from
com.google.api.client.extensions.android.http.AndroidHttpcom.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory - JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactorycom.google.api.client.json.gson.GsonFactorycom.google.api.client.extensions.android.json.AndroidJsonFactoryhttpRequestInitializer - HTTP request initializer or null for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
throws IOException
initialize in class com.google.api.client.googleapis.services.AbstractGoogleClientIOExceptionpublic Games.Accesstokens accesstokens()
The typical use is:
Games games = new Games(...);Games.Accesstokens.List request = games.accesstokens().list(parameters ...)
public Games.AchievementDefinitions achievementDefinitions()
The typical use is:
Games games = new Games(...);Games.AchievementDefinitions.List request = games.achievementDefinitions().list(parameters ...)
public Games.Achievements achievements()
The typical use is:
Games games = new Games(...);Games.Achievements.List request = games.achievements().list(parameters ...)
public Games.Applications applications()
The typical use is:
Games games = new Games(...);Games.Applications.List request = games.applications().list(parameters ...)
public Games.Events events()
The typical use is:
Games games = new Games(...);Games.Events.List request = games.events().list(parameters ...)
public Games.Leaderboards leaderboards()
The typical use is:
Games games = new Games(...);Games.Leaderboards.List request = games.leaderboards().list(parameters ...)
public Games.Metagame metagame()
The typical use is:
Games games = new Games(...);Games.Metagame.List request = games.metagame().list(parameters ...)
public Games.Players players()
The typical use is:
Games games = new Games(...);Games.Players.List request = games.players().list(parameters ...)
public Games.Recall recall()
The typical use is:
Games games = new Games(...);Games.Recall.List request = games.recall().list(parameters ...)
public Games.Revisions revisions()
The typical use is:
Games games = new Games(...);Games.Revisions.List request = games.revisions().list(parameters ...)
public Games.Scores scores()
The typical use is:
Games games = new Games(...);Games.Scores.List request = games.scores().list(parameters ...)
public Games.Snapshots snapshots()
The typical use is:
Games games = new Games(...);Games.Snapshots.List request = games.snapshots().list(parameters ...)
public Games.Stats stats()
The typical use is:
Games games = new Games(...);Games.Stats.List request = games.stats().list(parameters ...)
Copyright © 2011–2025 Google. All rights reserved.