Import Library
To have a better overview of the steps to take, please look at Getting Started
In order to develop applications that support Stagecast Moments, the MDK must be imported before your javascript code.
Once the code is imported:
The MDK is an empty wrapper for the Stagecast Backend APIs that needs some runtime configurations to be injected. The configuration object looks like the following:
NOTES
Some default configurations can be passed via object constructor. But beware that the Stagecast App will send the runtime configuration to the SDK when the moment is launched in the Mobile apps.
onConfigReceived(callback)
is always fired after the page has loaded. Of cource, if you need to perform some actions before thewindow.load
event, you can.
Last updated