readyListener - Initialization - Events API

Events API Initialization

readyListener()

This function is called when the API has been successfully initialized.

You would want to use this callback so that you can run your own application logic after Events API has completed loading, such as adding event listeners for Events API Events or injecting additional content into the page, for example.

Examples

var callbacks = {
    readyListener: function () {
        console.log('The callback that is executed when the API has been successfully initialized.');
    },
    // ...
};

var eventsApp = window.LearnosityEvents.init(
    initializationOptions,
    callbacks
);

Arguments

None.

Return value

None (undefined).

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.