Module: playerapi/quiz/QuizEventHandler

This class handles quiz events for page and stage components.

Methods

<inner> registerChannels(onEvaluatedCallback, onUserSolutionCallback, onBestPracticeSolutionCallback)

register mediator channels for quiz

Parameters:
Name Type Description
onEvaluatedCallback function

This function will be called when the quiz is evaluated.

onUserSolutionCallback function

This function will be called when the user solution is forced to display.

onBestPracticeSolutionCallback function

This function will be called when the best practice solution is forced to display.