Kit > healthstack.kit.task.activity.predefined > GaitAndBalanceActivityTask > GaitAndBalanceActivityTask

GaitAndBalanceActivityTask

[androidJvm]
fun GaitAndBalanceActivityTask(id: String, taskId: String, name: String = "Gait & Balance", description: String, completionTitle: String, completionDescription: List<String>?, steps: List<Step<out StepModel, *>> = listOf(
SimpleViewActivityStep(
id, name,
GaitAndBalanceIntroModel(id)
),
SimpleViewActivityStep(
id, name,
GaitAndBalanceGMeasureModel(
id,
header = "Walk in a straight line unassisted for 20 steps",
buttonText = "Done"
)
),
SimpleViewActivityStep(
id, name,
GaitAndBalanceGMeasureModel(
id,
header = "Turn around and walk back to your starting point",
drawableId = R.drawable.ic_activity_gait_and_balance_back,
buttonText = "Done"
)
),
SimpleTimerActivityStep(
id, name,
GaitAndBalanceBMeasureModel(
id,
header = "Stand still for 20 seconds",
timeSeconds = 20,
interactionType = VIBRATE,
)
),
SimpleViewActivityStep(
id, name,
GaitAndBalanceResultModel(id, name, header = completionTitle, body = completionDescription)
)
), isCompleted: Boolean = false, isActive: Boolean = true)