java.lang.Object | |
↳ | com.google.android.gms.games.event.EventEntity |
Data object representing the data for a event. This is immutable, and therefore safe to cache or store. Note, however, that the data it represents may grow stale.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Freeze a volatile representation into an immutable representation.
| |||||||||||
Retrieves the description for this event.
| |||||||||||
Loads the event description into the given
CharArrayBuffer . | |||||||||||
Retrieves the ID of this event.
| |||||||||||
Retrieves the sum of increments have been made to this event (formatted
for the user's locale).
| |||||||||||
Retrieves the sum of increments have been made to this event (formatted for the user's
locale).
| |||||||||||
Retrieves a URI that can be used to load the event's image icon.
| |||||||||||
Loads the event name into the given
CharArrayBuffer . | |||||||||||
Retrieves the name of this event.
| |||||||||||
Retrieves the player information associated with this event.
| |||||||||||
Retrieves the number of increments this user has made to this event.
| |||||||||||
Check to see if this object is valid for use.
| |||||||||||
Retrieves whether the event should be displayed to the user in any event related UIs.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Parameters | |
---|---|
obj |
Object
|
Returns | |
---|---|
boolean |
Freeze a volatile representation into an immutable representation. Objects returned from this call are safe to cache.
Note that the output of freeze
may not be identical to the parent object, but should
be equal. In other words:
Freezable f1 = new Freezable();
Freezable f2 = f1.freeze();
f1 == f2 may not be true.
f1.equals(f2) will be true.
Returns | |
---|---|
Event |
A concrete implementation of the data object. |
Retrieves the description for this event.
Returns | |
---|---|
String |
The event description. |
Loads the event description into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the ID of this event.
Returns | |
---|---|
String |
The event ID. |
Retrieves the sum of increments have been made to this event (formatted for the user's locale).
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the sum of increments have been made to this event (formatted for the user's locale).
Returns | |
---|---|
String |
The formatted number of increments this user has made to this event. |
Retrieves a URI that can be used to load the event's image icon. Returns null if the event has no image.
To retrieve the Image from theUri
, use ImageManager
.
Returns | |
---|---|
Uri |
The image URI for the achievement's unlocked image icon, or null if the achievement has no unlocked image. |
Returns | |
---|---|
String |
Loads the event name into the given CharArrayBuffer
.
Parameters | |
---|---|
dataOut |
CharArrayBuffer :
The buffer to load the data into.
|
Retrieves the name of this event.
Returns | |
---|---|
String |
The event name. |
Retrieves the number of increments this user has made to this event.
Returns | |
---|---|
long |
The number of increments this user has made to this event. |
Returns | |
---|---|
int |
Check to see if this object is valid for use. If the object is still volatile, this method
will indicate whether or not the object can be safely used. The output of a call to
freeze()
will always be valid.
Returns | |
---|---|
boolean |
whether or not the object is valid for use. |
Retrieves whether the event should be displayed to the user in any event related UIs.
Returns | |
---|---|
boolean |
Whether to display the event to the user. |
Returns | |
---|---|
String |
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|