SDK
Events
Subscribe with VPlay.on(event, fn); it returns a function that unsubscribes.
| Event | Data | When |
|---|---|---|
pause | none | A VPlay overlay is open (leaderboard, purchase sheet, ad, exit dialog). Stop the action. |
resume | none | The overlay closed. Carry on. |
mute / unmute | none | Reserved for the platform's sound control. |
entitlements | string[] | What the player owns changed (a purchase, signing in or out). |
vcoins | number | The balance changed. Display only. |
config | host object | The theme, a feature switch, a limit or the tournament changed. |
Ignore events you do not recognise: the platform may add more.
