Kit > healthstack.kit.task.base > StepModel

StepModel

[androidJvm]
abstract class StepModel(val id: String, val title: String, val drawableId: Int?)

A data object for Step.

It has properties representing Step's state such as title, selectedValue etc.

And it also has functions calculating Step's result.

It is passed to composable function of View as parameter.

Then, View renders UI using Model's data.

Constructors

StepModel

[androidJvm]
fun StepModel(id: String, title: String, drawableId: Int?)

Properties

Name Summary
drawableId

[androidJvm]
val drawableId: Int?
a representative image for UI

id

[androidJvm]
val id: String
id

title

[androidJvm]
val title: String
a title of UI

Inheritors

Name
ColorWordChallengeMeasureModel

GuidedBreathingMeasureModel

MobileSpirometryMeasureModel

ReactionTimeMeasureModel

SpeechRecognitionMeasureModel

SustainedPhonationMeasureModel

TappingSpeedMeasureModel

SimpleAudioActivityModel

SimpleTimerActivityModel

SimpleViewActivityModel

ImageArticleModel

ConsentTextModel

EligibilityIntroModel

EligibilityResultModel

IntroModel

RegistrationCompletedModel

SignUpModel

SurveyModel