Assess API Events
test:start
Fires when the assessment commences. This is usually when the learner clicks the "Start" button on the intro page. This may also happen automatically when the intro page is hidden, or when in "resume"
or "review"
states.
You would want to be notified about this event firing, because you might want to start a session on your own servers at the same time, for example.
Examples
itemsApp.on('test:start', function (appInstance) {
console.log('This code executes when the learner has clicked "Start" and the assessment has commenced.');
});
Callback arguments
-
appInstance object
The instance of the Assess API. See assessApp public methods.
Caveats
This event will fire before the readyListener
callback in "resume"
and "review"
states.
Related articles
- The
readyListener
callback, to know when all assessment APIs have finished loading.