BPMState
data class BPMState(val startText: String = "Start tapping", val keepText: String = " Keep tapping", val display: String = startText, val pickerVisibility: Boolean = false, val startTime: Long = 0, val elapsed: Long = 0, val times: Queue<Long> = ArrayDeque(), val weights: List<Float> = listOf(0.001f,
0.001f,
0.005f,
0.01f,
0.025f,
0.05f,
0.1f,
0.5f,
1f,
1f))
The backing state of the MainViewModel.
Parameters
start Text
The "start" stringResource that is displayed before any tapping has occurred.
keep Text
The "keep" stringResource that is displayed between the first and third taps.
display
The text shown in the Text composable with the "reading" contentDescription semantic modifier.
picker Visibility
Whether or not the color picker is showing color options.
start Time
The time since the last tap.
elapsed
The time between the last 2 taps.
Constructors
Link copied to clipboard
constructor(startText: String = "Start tapping", keepText: String = " Keep tapping", display: String = startText, pickerVisibility: Boolean = false, startTime: Long = 0, elapsed: Long = 0, times: Queue<Long> = ArrayDeque(), weights: List<Float> = listOf(0.001f,
0.001f,
0.005f,
0.01f,
0.025f,
0.05f,
0.1f,
0.5f,
1f,
1f))