Kit > healthstack.kit.task.survey.step > SurveyStep

SurveyStep

[androidJvm]
open class SurveyStep(id: String, name: String, model: SurveyModel, view: View<SurveyModel> = SurveyView(), val subStepHolder: SubStepHolder) : Step<SurveyModel, Boolean>

Constructors

SurveyStep

[androidJvm]
fun SurveyStep(id: String, name: String, model: SurveyModel, view: View<SurveyModel> = SurveyView(), subStepHolder: SubStepHolder)

Types

Name Summary
Builder

[androidJvm]
class Builder(title: String, view: View<SurveyModel> = SurveyView())

Functions

Name Summary
getState

[androidJvm]
fun getState(): SurveyModel
A method for getting state of Step.

Render

[androidJvm]
@Composable
open override fun Render(callbackCollection: CallbackCollection)
A method for rendering UI.

Properties

Name Summary
id

[androidJvm]
val id: String
id

model

[androidJvm]
val model: SurveyModel
data object for UI & state management

name

[androidJvm]
val name: String
name

result

[androidJvm]
var result: Boolean

subStepHolder

[androidJvm]
val subStepHolder: SubStepHolder

view

[androidJvm]
val view: View<SurveyModel>
view object holding UI method

Inheritors

Name
EligibilityCheckerStep