Skip to main content

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:

KeyTypeDescription
actionStringType of action. Options: successRendered
elementStringType of element. Options: barcode, copy
gameInstanceIdIntUnique game instance id
userIdStringUnique user id
valueStringThe value set in the widget

Game-specific events​

Wheel of fortune​

spinStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

spinEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
sectorIndexIntWheel sector index (starts from 0)

Match-3​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
scoreIntNumber of points scored
winIntResult: 1 - win, -1 - loss, 0 - no result

Memory​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
winIntResult: 1 - win, -1 - loss, 0 - no result

15-Puzzle​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
winIntResult: 1 - win, -1 - loss, 0 - no result

Mystery Boxes​

openBox​

payload:

KeyTypeDescription
boxIndexIntIndex of the card on the game field
instanceIdIntUnique game instance id
itemIndexIntItem index from the console (starts from 0)

Advent Calendar​

flipCard​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
indexIntCard index (starts from 0)

Slicer​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
scoreIntNumber of points scored
winIntResult: 1 - win, -1 - loss, 0 - no result

Sorting​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
winIntResult: 1 - win, -1 - loss, 0 - no result

Words​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
winIntResult: 1 - win, -1 - loss, 0 - no result

Runner​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
scoreIntNumber of points scored
winIntResult: 1 - win, -1 - loss, 0 - no result

Shaker​

shakeStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

shakeEnd​

payload:

KeyTypeDescription
durationIntGame duration
instanceIdIntUnique game instance id
prizeIndexIntPrize index (starts from 0)

Catcher​

gameStart​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id

gameEnd​

payload:

KeyTypeDescription
instanceIdIntUnique game instance id
durationIntGame duration
scoreIntNumber of points scored
winIntResult: 1 - win, -1 - loss, 0 - no result