Loading Events

This is an asynchronous function which allows you fetch Google Play Events in the Cloud. You can make use of this to create personalized experiences tailored to individual players.

The parameters include whether or not to clear the local cache and the Event ID's to fetch.

Once the asynchronous operation has completed, one of two delegates will be called to handle the success and failure situations.

1

Clear Local Cache

A boolean value to indicate whether or not to clear the local cache on the Android device.
When set to true, it will fetch from the cloud, potentially taking longer to complete. When false, will be much faster but will access the locally cached version if its there.

2

Event Ids

An array of Event ID's to fetch. If an empty array is provided, it will fetch all Events.

3

On Success

A delegate that will be called when the Events have successfully been retrieved. The delegate will produce an Array of Events for you to use.
You can simply click and drag this pin to create a custom event.

4

On Failure

A delegate that will be called if there is an error fetching the events. The delegate will produce an Event Error type for the developer to handle appropriately. You can simply click and drag this pin to create a custom event.