test.pause - Events - Items API

Items API Events

test:pause

Fires when an assessment has been paused by the learner (when the timer for an assessment is paused). Specifically, this can happen when certain modal dialog windows are shown. For example, the pause dialog, the section change and the save and submit dialogs.

You would want to know that the assessment has paused, because you might want to report that back to your application, or because you are keeping track of time, for example.

Examples

itemsApp.on('test:pause', function () {
    console.log('This code executes when the assessment has been paused.');
});

Caveats

The timer will not pause when the learner switches to another browser tab, or another application.

Related articles

  • The test:resume event, the event that occurs when the assessment is resumed.
  • The focused event, to detect when the learner has resumed interacting with the assessment browser window.
  • The unfocused event, to detect when the learner is not interacting with the assessment browser window.
Was this article helpful?

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