Skip to main content

Introduction

Metered Embed Frame SDK emit various events that you can listen to in your application and take appropriate action based on the events.

Following is the latest version of the Metered Embed Frame SDK:

<script src="https://cdn.metered.ca/sdk/frame/1.4.3/sdk-frame.min.js"></script>

To initialize the frame SDK, first create instance of the frame SDK and then call the init method.

var frame = new MeteredFrame(); 

Listening to events

frame.on("<eventName>", function eventHandler(data) {
// Handle event
});

List of Events