BPMState
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))
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.
times
A Queue of elapsed times used for the display.
weights
How much recently remembered elapsed times contribute to the current display. The size of this determines how many times are remembered.