Package com.incode.welcome_sdk.modules
Class DynamicForms.Screen.Question
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DynamicForms.Screen.Question implements Parcelable
Represents a single question that's part of a Screen.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StringquestionTextprivate final DynamicForms.InputTypeinputTypeprivate final DynamicForms.PredefinedInputTypepredefinedQuestionTypeprivate final List<String>optionsprivate final BooleanisOptionalprivate final DynamicForms.PrefillSourceprefillSourceprivate final Booleaneditable
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetQuestionText()final DynamicForms.InputTypegetInputType()final DynamicForms.PredefinedInputTypegetPredefinedQuestionType()final List<String>getOptions()final BooleanisOptional()final DynamicForms.PrefillSourcegetPrefillSource()The interview attribute this question should be prefilled from, or nullif this question isn't prefillable.final BooleangetEditable()Whether the end user may edit a value prefilled via prefillSource. -
-
Constructor Detail
-
DynamicForms.Screen.Question
DynamicForms.Screen.Question(String id, String questionText, DynamicForms.InputType inputType, DynamicForms.PredefinedInputType predefinedQuestionType, List<String> options, Boolean isOptional, DynamicForms.PrefillSource prefillSource, Boolean editable)
-
DynamicForms.Screen.Question
DynamicForms.Screen.Question(String id, String questionText, DynamicForms.InputType inputType, DynamicForms.PredefinedInputType predefinedQuestionType, List<String> options, Boolean isOptional, DynamicForms.PrefillSource prefillSource)
-
DynamicForms.Screen.Question
DynamicForms.Screen.Question(String id, String questionText, DynamicForms.InputType inputType, DynamicForms.PredefinedInputType predefinedQuestionType, List<String> options, Boolean isOptional)
-
DynamicForms.Screen.Question
DynamicForms.Screen.Question(String id, String questionText, DynamicForms.InputType inputType, DynamicForms.PredefinedInputType predefinedQuestionType, List<String> options)
-
DynamicForms.Screen.Question
DynamicForms.Screen.Question(String id, String questionText, DynamicForms.InputType inputType, DynamicForms.PredefinedInputType predefinedQuestionType)
-
-
Method Detail
-
getQuestionText
final String getQuestionText()
-
getInputType
final DynamicForms.InputType getInputType()
-
getPredefinedQuestionType
final DynamicForms.PredefinedInputType getPredefinedQuestionType()
-
getOptions
final List<String> getOptions()
-
isOptional
final Boolean isOptional()
-
getPrefillSource
final DynamicForms.PrefillSource getPrefillSource()
The interview attribute this question should be prefilled from, or
nullif this question isn't prefillable. Configured via the Incode dashboard.
-
getEditable
final Boolean getEditable()
Whether the end user may edit a value prefilled via prefillSource. Irrelevant when prefillSource is
null. Note: read-only gating at runtime is driven by the prefill values endpoint's owneditableflag (which echoes this dashboard-configured value), not this field directly.
-
-
-
-