| com.google.android.gms.games.event.Events |
Entry point for events functionality.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Events.LoadEventsResult | Result delivered when event data has been loaded. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Increments an event by the given number of steps.
| |||||||||||
Asynchronously load event data for the currently signed in player.
| |||||||||||
Asynchronously load event data for specified event IDs.
| |||||||||||
Increments an event by the given number of steps.
This is the fire-and-forget API. Event increments are cached locally and flushed to the server in batches. Required API:APISCOPE_GAMES| apiClient | The GoogleApiClient to service the call. |
|---|---|
| eventId | The event ID to increment. |
| incrementAmount | The amount increment by. Must be greater than or equal to 0. |
Asynchronously load event data for the currently signed in player.
Required API: API
Required Scopes: SCOPE_GAMES
| apiClient | The GoogleApiClient to service the call. |
|---|---|
| forceReload | If true, this call will clear any locally cached data and attempt to fetch the latest data from the server. This would commonly be used for something like a user-initiated refresh. Normally, this should be set to false to gain advantages of data caching. |
PendingResult to access the data when available.
Asynchronously load event data for specified event IDs.
Required API: API
Required Scopes: SCOPE_GAMES
| apiClient | The GoogleApiClient to service the call. |
|---|---|
| forceReload | If true, this call will clear any locally cached data and attempt to fetch the latest data from the server. This would commonly be used for something like a user-initiated refresh. Normally, this should be set to false to gain advantages of data caching. |
| eventIds | The IDs of the events to load. |
PendingResult to access the data when available.