Kit > healthstack.kit.task.activity.model > MobileSpirometryMeasureModel
MobileSpirometryMeasureModel
[androidJvm]
class MobileSpirometryMeasureModel(val id: String, val title: String = "Mobile Spirometry", val count: Int = 3, val drawableId: Int? = null, val buttonText: String = "Stop Recording", val recorder: AudioRecorder.Companion = AudioRecorder) : StepModel
Constructors
MobileSpirometryMeasureModel | [androidJvm] fun MobileSpirometryMeasureModel(id: String, title: String = "Mobile Spirometry", count: Int = 3, drawableId: Int? = null, buttonText: String = "Stop Recording", recorder: AudioRecorder.Companion = AudioRecorder) |
Functions
Name | Summary |
---|---|
delete | [androidJvm] fun delete() |
getAmplitudes | [androidJvm] fun getAmplitudes(): Flow<Int> |
start | [androidJvm] fun start(context: Context) |
stop | [androidJvm] fun stop() |
Properties
Name | Summary |
---|---|
buttonText | [androidJvm] val buttonText: String |
count | [androidJvm] val count: Int = 3 |
drawableId | [androidJvm] val drawableId: Int? a representative image for UI |
filePath | [androidJvm] var filePath: String |
id | [androidJvm] val id: String id |
recorder | [androidJvm] val recorder: AudioRecorder.Companion |
title | [androidJvm] val title: String a title of UI |