Items API Methods
safeToUnload()
Confirms whether or not all responses have been saved successfully.
You would want to use this method so that you can persist the session data and wait before the learner navigates away to the next page, for example.
This includes the status of any audio recordings or file uploads that are still in progress.
Examples
var isSafeToUnload = itemsApp.safeToUnload();
console.log(isSafeToUnload);
Arguments
None.
Return value
Type boolean