Kit > healthstack.kit.task.base

Package healthstack.kit.task.base

Types

Name Summary
CallbackCollection

[androidJvm]
open class CallbackCollection
A object holding callback functions.

ImageArticleModel

[androidJvm]
class ImageArticleModel(val id: String, val title: String, val description: String, val drawableId: Int?) : StepModel
A StepModel with image.

OrderedTask

[androidJvm]
open class OrderedTask(val id: String, val name: String, val description: String, val steps: List<Step<out StepModel, *>>) : Task
Task with multiple Steps OnboardingTask is an example of OrderedTask

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.

StepModel

[androidJvm]
abstract class StepModel(val id: String, val title: String, val drawableId: Int?)
A data object for Step.

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.

View

[androidJvm]
abstract class View<T : StepModel>
A UI rendering object for Step.