Questions API Methods
This article details methods the host page can use to interact with Questions API.
LearnosityApp
questionsApp
The following methods are accessed via the questionsApp
object returned by the window.LearnosityApp.init()
method. This object provides methods to interact with, and receive information relating to Questions and Features.
- append()
- attemptedQuestions()
- disable()
- enable()
- feature()
- features()
- getFeatures()
- getGroupScore()
- getMetadata()
- getQuestions()
- getResponses()
- getScores()
- masking()
- needPushing()
- off()
- on()
- once()
- question()
- questions()
- renderMath()
- reset()
- retryQuestionCapture()
- safeToUnload()
- save()
- setScrollablePassagesContextHeight()
- stopAllSimpleFeatures()
- submit()
- unsaveableQuestions()
- push()
- validateQuestions()
- validQuestions()
question
The following methods are accessed via the question
object returned by the questions()
or question("response_id")
public methods. This object provides methods to interact with, and receive information for Questions used in the assessment.
- begin()
- checkImages()
- checkValidation()
- disable()
- enable()
- getAttemptedStatus()
- getMetadata()
- getProcessedOptions()
- getQuestion()
- getResponse()
- getScore()
- isAttempted()
- isMaskable()
- isRendered()
- isResponseReset()
- isValid()
- mapValidationMetadata()
- masking()
- off()
- on()
- once()
- pause()
- recording
- render()
- resetResponse()
- resetValidationUI()
- response
- retryLoadImages()
- simpleFeature()
- simpleFeatures()
- stop()
- validate()
- dynamic
feature
The following methods are accessed via the feature
object returned by the features()
or feature("feature_reference")
public methods. This object provides methods to interact with, and receive information for any Features used in the assessment.