SurveyQuestion
One question in a Survey.
Package: com.microblink.core
Declaration
class SurveyQuestion : Parcelable
Quick Reference
Properties
| Property | Description |
|---|---|
serverId() | Server-assigned question identifier |
text() | Question text displayed to the user |
type() | Question type |
answers() | Available answer options |
totalNumberOfQuestions() | Total number of questions in the parent survey |
myIndex() | Zero-based position of this question |
nextQuestionIndex() | Default next question index |
lastQuestion() | Whether this is the final question |
multipleAnswers() | Whether the user may select multiple answers |
Properties
serverId()
fun serverId(): Int
Server-assigned question identifier.
text()
fun text(): String?
Question text displayed to the user.
type()
fun type(): SurveyQuestionType?
Question type (e.g., multiple choice, free text). See SurveyQuestionType enum.
answers()
fun answers(): List<SurveyAnswer>?
Available answer options. See SurveyAnswer.
totalNumberOfQuestions()
fun totalNumberOfQuestions(): Int
Total number of questions in the parent survey.
myIndex()
fun myIndex(): Int
Zero-based position of this question within the survey.
nextQuestionIndex()
fun nextQuestionIndex(): Int
Default next question index (used when no answer-specific routing applies).
lastQuestion()
fun lastQuestion(): Boolean
true if this is the final question in the survey.
multipleAnswers()
fun multipleAnswers(): Boolean
true if the user may select more than one answer.