Kit > healthstack.kit.task.base > Step

Step

[androidJvm]
abstract class Step<T : StepModel, R>(val id: String, val name: String, val model: T, val view: View<T>, getResult: () -> R)

An object representing an action(=a single page) such as Intro page.

It maps a Model and a View.

Then, View renders UI with data of Model.

Constructors

Step

[androidJvm]
fun <T : StepModel, R> Step(id: String, name: String, model: T, view: View<T>, getResult: () -> R)

Functions

Name Summary
getState

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

Render

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

Properties

Name Summary
id

[androidJvm]
val id: String
id

model

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

name

[androidJvm]
val name: String
name

result

[androidJvm]
var result: R

view

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

Inheritors

Name
ColorWordChallengeMeasureStep

GuidedBreathingMeasureStep

MobileSpirometryMeasureStep

RangeOfMotionMeasureStep

ReactionTimeMeasureStep

SpeechRecognitionMeasureStep

SustainedPhonationMeasureStep

TappingSpeedMeasureStep

SimpleAudioActivityStep

SimpleTimerActivityStep

SimpleViewActivityStep

ConsentTextStep

EligibilityIntroStep

EligibilityResultStep

IntroStep

RegistrationCompletedStep

SignUpStep

SurveyStep