RU | EN

Playvision

Application startup options

API requests
Users
Friends
Wall
Notifications
Game interaction
Payment API
Javascript SDK

sdk.tutorial

Javascript SDK tutorial

SDK integration

Add this snippet to the head tag of page

  
    <script type="text/javascript" src="http://playvision.ru/api/v1/js/sdk.js">
  

Event subscription

Event subscription format:

    
PLV.addCallback('event_name', function(){
  console.log('event name');
});
    

Event list

Name Description
game_window.hide The game iframe would be hidden on this event
game_window.show The game iframe would be shown on this event

Example

Hide game window event subscription


PLV.addCallback('game_window.hide', function(){
  console.log('The game is hidden');
});

<- Back