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)

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

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

Advent Calendar

flipCard

payload:

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