Kit > healthstack.kit.task.activity.predefined > RangeOfMotionActivityTask
RangeOfMotionActivityTask
[androidJvm]
class RangeOfMotionActivityTask(val id: String, val taskId: String, val name: String, val description: String, completionTitle: String, completionDescription: List<String>?, val steps: List<Step<out StepModel, *>> = listOf(
SimpleViewActivityStep(
id, name, RangeOfMotionIntroModel(id, name)
),
SimpleViewActivityStep(
id,
name,
RangeOfMotionIntroModel(
id = id,
title = name,
header = "Right Arm Circumduction",
body = listOf(
"Place phone in your right hand.",
"Straighten your right arm and move it in a full circle for 20 sec."
),
drawableId = R.drawable.ic_activity_range_of_motion_right_arm,
buttonText = "Start Exercise",
)
),
RangeOfMotionMeasureStep(
id, name, RangeOfMotionMeasureModel(id, name),
),
SimpleViewActivityStep(
id,
name,
RangeOfMotionResultModel(
id,
name,
header = completionTitle,
body = completionDescription,
buttonText = "Continue"
)
),
SimpleViewActivityStep(
id,
name,
RangeOfMotionIntroModel(
id = id,
title = name,
header = "Left Arm Circumduction",
body = listOf(
"Place phone in your left hand.",
"Straighten your left arm and move it in a full circle for 20 sec.",
),
drawableId = R.drawable.ic_activity_range_of_motion_left_arm,
buttonText = "Start Exercise",
)
),
RangeOfMotionMeasureStep(
id,
name,
RangeOfMotionMeasureModel(
id,
name,
header = "Left Arm Circumduction",
body = listOf(
"Place phone in your left hand.",
"Straighten your left arm and move it in a full circle for 20 sec",
),
isRightHand = false,
)
),
SimpleViewActivityStep(
id,
name,
RangeOfMotionResultModel(
id,
name,
header = completionTitle,
body = completionDescription,
)
),
), isCompleted: Boolean = false, isActive: Boolean = true) : ActivityTask
Constructors
RangeOfMotionActivityTask | [androidJvm] fun RangeOfMotionActivityTask(id: String, taskId: String, name: String, description: String, completionTitle: String, completionDescription: List<String>?, steps: List<Step<out StepModel, *>> = listOf( SimpleViewActivityStep( id, name, RangeOfMotionIntroModel(id, name) ), SimpleViewActivityStep( id, name, RangeOfMotionIntroModel( id = id, title = name, header = "Right Arm Circumduction", body = listOf( "Place phone in your right hand.", "Straighten your right arm and move it in a full circle for 20 sec." ), drawableId = R.drawable.ic_activity_range_of_motion_right_arm, buttonText = "Start Exercise", ) ), RangeOfMotionMeasureStep( id, name, RangeOfMotionMeasureModel(id, name), ), SimpleViewActivityStep( id, name, RangeOfMotionResultModel( id, name, header = completionTitle, body = completionDescription, buttonText = "Continue" ) ), SimpleViewActivityStep( id, name, RangeOfMotionIntroModel( id = id, title = name, header = "Left Arm Circumduction", body = listOf( "Place phone in your left hand.", "Straighten your left arm and move it in a full circle for 20 sec.", ), drawableId = R.drawable.ic_activity_range_of_motion_left_arm, buttonText = "Start Exercise", ) ), RangeOfMotionMeasureStep( id, name, RangeOfMotionMeasureModel( id, name, header = "Left Arm Circumduction", body = listOf( "Place phone in your left hand.", "Straighten your left arm and move it in a full circle for 20 sec", ), isRightHand = false, ) ), SimpleViewActivityStep( id, name, RangeOfMotionResultModel( id, name, header = completionTitle, body = completionDescription, ) ), ), isCompleted: Boolean = false, isActive: Boolean = true) |
Functions
Name | Summary |
---|---|
CardView | [androidJvm] @Composable open override fun CardView(onClick: () -> Unit) A method for rendering CardView UI. |
equals | [androidJvm] open operator override fun equals(other: Any?): Boolean |
hashCode | [androidJvm] open override fun hashCode(): Int |
Render | [androidJvm] @Composable open override fun Render() A method for rendering UI. |
Properties
Name | Summary |
---|---|
callback | [androidJvm] var callback: () -> Unit? = null a method handling task's state when it is finished |
canceled | [androidJvm] var canceled: () -> Unit? = null a method handling task's state when it is canceled |
description | [androidJvm] val description: String concise description of task |
id | [androidJvm] val id: String id |
isActive | [androidJvm] var isActive: Boolean = true |
isCompleted | [androidJvm] var isCompleted: Boolean = false flag for completion of task |
name | [androidJvm] val name: String name |
pageCallbacks | [androidJvm] open override val pageCallbacks: CallbackCollection An object including callback. |
result | [androidJvm] val result: MutableMap<String, Any> |
startedAt | [androidJvm] var startedAt: LocalDateTime? = null |
steps | [androidJvm] val steps: List<Step<out StepModel, *>> |
taskId | [androidJvm] val taskId: String |