Data object representing a set of Game data. This is immutable, and therefore safe to cache or store. Note, however, that the data it represents may grow stale.
This class exists solely to support parceling these objects and should not be used directly.
Inherited Constant Summary
Field Summary
public static final Creator < GameEntity > | CREATOR |
Public Method Summary
boolean | |
boolean | |
Game | freeze
()
|
int | |
String | |
String | |
void | |
void | |
String | |
void | |
String | |
Uri | getFeaturedImageUri
()
Retrieves an image URI that can be used to load the game's featured (banner)
image from Google Play.
|
Uri | |
Uri | |
int | |
String | |
String | |
String | |
boolean | |
int | hashCode
()
|
boolean | isDataValid
()
|
String | toString
()
|
void |
Inherited Method Summary
Fields
public static final Creator < GameEntity > CREATOR
Public Methods
public boolean areSnapshotsEnabled ()
Indicates whether or not this game supports snapshots.
Returns
- Whether or not this game supports snapshots.
public boolean equals ( Object obj)
public Game freeze ()
public int getAchievementTotalCount ()
Retrieves the number of achievements registered for this game.
Returns
- The number of achievements registered for this game.
public String getApplicationId ()
Retrieves the application ID for this game.
Returns
- The application ID for this game.
public String getDescription ()
Retrieves the description of this game.
Returns
- The description of this game.
public void getDescription ( CharArrayBuffer dataOut)
Loads the description string into the given CharArrayBuffer
.
Parameters
public void getDeveloperName ( CharArrayBuffer dataOut)
Loads the developer name into the given CharArrayBuffer
.
Parameters
public String getDeveloperName ()
Retrieves the name of the developer of this game.
Returns
- The name of the developer of this game.
public void getDisplayName ( CharArrayBuffer dataOut)
Loads the display name string into the given CharArrayBuffer
.
Parameters
public String getDisplayName ()
Retrieves the display name for this game.
Returns
- The display name for this game.
public Uri getFeaturedImageUri ()
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 the Uri
, use ImageManager
.
Returns
- A URI that can be used to load the game's featured image, or null if the game has no featured image.
public Uri getHiResImageUri ()
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 the Uri
, use ImageManager
.
Returns
- A URI that can be used to load the game's hi-res image, or null if the game has no hi-res image.
public Uri getIconImageUri ()
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 the Uri
, use ImageManager
.
Returns
- A URI that can be used to load the game's icon, or null if the game has no icon.
public int getLeaderboardCount ()
Gets the number of leaderboards registered for this game.
Returns
- The number of leaderboards registered for this game.
public String getPrimaryCategory ()
Retrieves the primary category of the game - this is may be null.
Returns
- The primary category of the game.
public String getSecondaryCategory ()
Retrieves the secondary category of the game - this may be null.
Returns
- The secondary category of the game, or null if not provided.
public String getThemeColor ()
Retrieves the theme color for this game. The theme color is used to configure the appearance of Play Games UIs.
Returns
- The color to use as an RGB hex triplet, e.g. "E0E0E0"
public boolean hasGamepadSupport ()
Indicates whether or not this game is marked as supporting gamepads.
Returns
- Whether or not this game declares gamepad support.