com.google.android.gms.games.Game |
![]() |
Data interface for retrieving game information.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether or not this game supports snapshots.
| |||||||||||
Retrieves the number of achievements registered for this game.
| |||||||||||
Retrieves the application ID for this game.
| |||||||||||
Retrieves the description of this game.
| |||||||||||
Loads the description string into the given
CharArrayBuffer . | |||||||||||
Loads the developer name into the given
CharArrayBuffer . | |||||||||||
Retrieves the name of the developer of this game.
| |||||||||||
Loads the display name string into the given
CharArrayBuffer . | |||||||||||
Retrieves the display name for this game.
| |||||||||||
Retrieves an image URI that can be used to load the game's featured (banner) image from
Google Play.
| |||||||||||
Retrieves an image URI that can be used to load the game's hi-res image.
| |||||||||||
Retrieves an image URI that can be used to load the game's icon.
| |||||||||||
Gets the number of leaderboards registered for this game.
| |||||||||||
Retrieves the primary category of the game - this is may be null.
| |||||||||||
Retrieves the secondary category of the game - this may be null.
| |||||||||||
Retrieves the theme color for this game.
| |||||||||||
Indicates whether or not this game is marked as supporting gamepads.
| |||||||||||
Indicates whether or not this game supports real-time multiplayer.
| |||||||||||
Indicates whether or not this game supports turn-based multiplayer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Indicates whether or not this game supports snapshots.
Returns | |
---|---|
boolean |
Whether or not this game supports snapshots. |
Retrieves the number of achievements registered for this game.
Returns | |
---|---|
int |
The number of achievements registered for this game. |
Retrieves the application ID for this game.
Returns | |
---|---|
String |
The application ID for this game. |
Retrieves the description of this game.
Returns | |
---|---|
String |
The description of this game. |
Loads the description string into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Loads the developer name into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the name of the developer of this game.
Returns | |
---|---|
String |
The name of the developer of this game. |
Loads the display name string into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the display name for this game.
Returns | |
---|---|
String |
The display name for this game. |
Retrieves an image URI that can be used to load the game's featured (banner) image from Google Play. Returns null if game has no featured image.
To retrieve the Image from theUri
, use ImageManager
.
Returns | |
---|---|
Uri |
A URI that can be used to load the game's featured image, or null if the game has no featured image. |
Retrieves an image URI that can be used to load the game's hi-res image. Returns null if game has no hi-res image.
To retrieve the Image from theUri
, use ImageManager
.
Returns | |
---|---|
Uri |
A URI that can be used to load the game's hi-res image, or null if the game has no hi-res image. |
Retrieves an image URI that can be used to load the game's icon. Returns null if game has no icon.
To retrieve the Image from theUri
, use ImageManager
.
Returns | |
---|---|
Uri |
A URI that can be used to load the game's icon, or null if the game has no icon. |
Gets the number of leaderboards registered for this game.
Returns | |
---|---|
int |
The number of leaderboards registered for this game. |
Retrieves the primary category of the game - this is may be null.
Returns | |
---|---|
String |
The primary category of the game. |
Retrieves the secondary category of the game - this may be null.
Returns | |
---|---|
String |
The secondary category of the game, or null if not provided. |
Retrieves the theme color for this game. The theme color is used to configure the appearance of Play Games UIs.
Returns | |
---|---|
String |
The color to use as an RGB hex triplet, e.g. "E0E0E0" |
Indicates whether or not this game is marked as supporting gamepads.
Returns | |
---|---|
boolean |
Whether or not this game declares gamepad support. |
Indicates whether or not this game supports real-time multiplayer.
Returns | |
---|---|
boolean |
Whether or not this game supports real-time mulitplayer. |
Indicates whether or not this game supports turn-based multiplayer.
Returns | |
---|---|
boolean |
Whether or not this game supports turn-based mulitplayer. |