Game events
GameCenter games have events that the app can subscribe to and collect information about the user's actions in the game.
You can receive all the events from this article by subscribing to the SDK eventGame event.
Generic events
customScreenElement
payload:
| Key | Type | Description |
|---|---|---|
| action | String | Type of action. Options: successRendered |
| element | String | Type of element. Options: barcode, copy |
| gameInstanceId | Int | Unique game instance id |
| userId | String | Unique user id |
| value | String | The value set in the widget |
Game-specific events
Wheel of fortune
spinStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
spinEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| sectorIndex | Int | Wheel sector index (starts from 0) |
Match-3
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| score | Int | Number of points scored |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Memory
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
15-Puzzle
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Mystery Boxes
openBox
payload:
| Key | Type | Description |
|---|---|---|
| boxIndex | Int | Index of the card on the game field |
| instanceId | Int | Unique game instance id |
| itemIndex | Int | Item index from the console (starts from 0) |
Advent Calendar
flipCard
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| index | Int | Card index (starts from 0) |
Slicer
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| score | Int | Number of points scored |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Sorting
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Words
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Runner
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| score | Int | Number of points scored |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |
Shaker
shakeStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
shakeEnd
payload:
| Key | Type | Description |
|---|---|---|
| duration | Int | Game duration |
| instanceId | Int | Unique game instance id |
| prizeIndex | Int | Prize index (starts from 0) |
Catcher
gameStart
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
gameEnd
payload:
| Key | Type | Description |
|---|---|---|
| instanceId | Int | Unique game instance id |
| duration | Int | Game duration |
| score | Int | Number of points scored |
| win | Int | Result: 1 - win, -1 - loss, 0 - no result |