Assess API Events
item:unload
Fires when the active Item is no longer active and the learner can no longer interact with it.
You would want to be notified about this event firing so that you can gracefully complete all actions for the current Item and save your own data, for example.
Examples
itemsApp.on('item:unload', function () {
console.log('This code executes when the current Item is no longer active.');
});
Related articles
- The
item:load
event, the event that occurs when an Item has been loaded, rendered and is ready for the learner to interact.