This interface is deprecated.
UseEventsClient
instead
Entry point for events functionality.
Nested Class Summary
interface | Events.LoadEventsResult | This interface is deprecated.EventBuffer
is returned directly in theEventsClient .
|
Public Method Summary
abstract void |
increment(GoogleApiClient
apiClient,StringeventId, int
incrementAmount)
Increments an event by the given number of steps.
|
abstractPendingResult<Events.LoadEventsResult> |
load(GoogleApiClient
apiClient, boolean forceReload)
Asynchronously load event data for the currently signed in player.
|
abstractPendingResult<Events.LoadEventsResult> |
loadByIds(GoogleApiClient
apiClient, boolean forceReload,String...eventIds)
Asynchronously load event data for specified event IDs.
|
Public Methods
public abstract voidincrement(GoogleApiClient apiClient,String eventId, int incrementAmount)
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:Games.API
Required Scopes:Games.SCOPE_GAMES
Parameters
apiClient | TheGoogleApiClient
to service the call. |
---|---|
eventId | The event ID to increment. |
incrementAmount | The amount increment by. Must be greater than or equal to 0. |
public abstractPendingResult<Events.LoadEventsResult> load(GoogleApiClient apiClient, boolean forceReload)
Asynchronously load event data for the currently signed in player.
Required API:Games.API
Required Scopes:Games.SCOPE_GAMES
Parameters
apiClient | TheGoogleApiClient
to service the call. |
---|---|
forceReload | Iftrue ,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 tofalse
to gain advantages of data caching. |
Returns
PendingResult
to access the data when available.
public abstractPendingResult<Events.LoadEventsResult> loadByIds(GoogleApiClient apiClient, boolean forceReload,String... eventIds)
Asynchronously load event data for specified event IDs.
Required API:Games.API
Required Scopes:Games.SCOPE_GAMES
Parameters
apiClient | TheGoogleApiClient
to service the call. |
---|---|
forceReload | Iftrue ,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 tofalse
to gain advantages of data caching. |
eventIds | The IDs of the events to load. |
Returns
PendingResult
to access the data when available.