Kit > healthstack.kit.task.base > Task

Task

[androidJvm]
abstract class Task(val id: String, val name: String, val description: String)

An object representing a flow of actions(= a list of pages) such as survey flow or onBoarding flow.

It usually has one or more Steps as property.

SimpleTask - Task with one Step. OrderedTask - Task with multiple Steps.

Constructors

Task

[androidJvm]
fun Task(id: String, name: String, description: String)

Functions

Name Summary
CardView

[androidJvm]
@Composable
abstract 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
abstract 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

Inheritors

Name
OrderedTask

SurveyTask