Assess API Methods
once()
Set up a one time event listener. Will fire once and then stop listening.
Examples
// Sets up a one-time event listener (callback) for the 'focused' event.
assessApp.once("focused", function () {
console.log("The assessment is in focus.");
});
Arguments
-
event_name string
Name of the event that you want to listen to.
-
event_callback function
Callback function that will be invoked once, when the event is triggered.
-
context object
Execution context that will be used for
this
when the callback function is invoked.
Return value
None (undefined
).