Questions API Methods
This article details methods the host page can use to interact with Questions API.
feature
The following methods are accessed via the feature object returned by the features() or feature("feature_reference") methods. This object provides methods to interact with, and receive information for any Features used in the assessment.
- audio
- begin()
- checkImages()
- destroy()
- imageTool
- isRendered()
- off()
- on()
- once()
- pause()
- render()
- retryLoadImages()
- simpleFeature()
- simpleFeatures()
- stop()
- toggle()
- video
LearnosityApp
question
The following methods are accessed via the question object returned by the questions() or question("response_id") methods. This object provides methods to interact with, and receive information for Questions used in the assessment.
- begin()
- checkImages()
- checkValidation()
- disable()
- dynamic
- enable()
- getAttemptedStatus()
- getMetadata()
- getProcessedOptions()
- getQuestion()
- getResponse()
- getScore()
- isAttempted()
- isMaskable()
- isMasking()
- isRendered()
- isResponseReset()
- isValid()
- mapValidationMetadata()
- masking()
- off()
- on()
- once()
- pause()
- recording
- render()
- resetResponse()
- resetValidationUI()
- response
- retryLoadImages()
- simpleFeature()
- simpleFeatures()
- stop()
- validate()
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()