-
Notifications
You must be signed in to change notification settings - Fork 0
SdkQuestionSingleView
Hudson_BuildService edited this page Jan 9, 2026
·
1 revision
SdkQuestionSingleView displays Single choice question node where users can select one answer from multiple options.
import com.confirmit.mobilesdk.components.dialogs.questionViews.SdkQuestionSingleView
import com.confirmit.mobilesdk.ui.questions.SingleQuestion
import android.graphics.Color
class MySurveyActivity : Activity(), SurveyFrameCallback {
override fun onSurveyPageReady(page: SurveyPage) {
for (question in page.questions) {
if (question is SingleQuestion) {
val singleView = SdkQuestionSingleView(this, question)
singleView.themeColor = Color.BLUE
singleView.setup()
questionContainer.addView(singleView)
}
}
}
}import ConfirmitMobileSDK
class SurveyViewController: UIViewController, SurveyFrameDelegate {
func onSurveyPageReady(page: SurveyPage) {
for question in page.questions {
if let singleQuestion = question as? SingleQuestion {
let singleView = SdkQuestionSingleView(question: singleQuestion)
singleView.themeColor = .systemBlue
singleView.setup()
questionStackView.addArrangedSubview(singleView)
}
}
}
}| Property | Type (Android / iOS) | Description |
|---|---|---|
question |
SingleQuestion |
The single-choice question object containing answers and current selection |
themeColor |
Int / UIColor
|
Accent color for checked radio buttons and filled stars |
Initializes and configures the view with question text, answers, and current selection state.
Copyright © 2026 Forsta. All rights reserved.
- Initializing the SDK
- Download a Program
- Sending App Events
- Sending Journey Log
- Survey Triggering
- Displaying a Survey
- Forsta Plus Server
- Program Lifecycle Monitoring
- Starting and Updating a Program
- Advanced Trigger Control