MainEvent

sealed interface MainEvent

All of the events that can be performed by a user on the MainViewModel.

Inheritors

Types

Link copied to clipboard
data object Display : MainEvent

Sets the BPMState.display text based on the number of taps that have occurred.

Link copied to clipboard
data class Init(val startText: String, val keepText: String) : MainEvent

Sets the BPMState.startText and BPMState.keepText to their stringResource values.

Link copied to clipboard
Link copied to clipboard
data object Tap : MainEvent

Updates BPMState.startTime and subsequent taps also update BPMState.elapsed and BPMState.times.

Link copied to clipboard
data object TogglePicker : MainEvent

Toggles the visibility of the color picker.