TimerListViewModel

internal class TimerListViewModel @Inject constructor(val settingsRepository: SettingsRepository, val timerManager: TimerManager, stopWatchNotificationManager: StopWatchNotificationManager, countDownNotificationManager: CountDownNotificationManager) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(settingsRepository: SettingsRepository, timerManager: TimerManager, stopWatchNotificationManager: StopWatchNotificationManager, countDownNotificationManager: CountDownNotificationManager)

Properties

Link copied to clipboard
val allTimers: List<TimerState>
Link copied to clipboard
val shouldHaptic: StateFlow<Boolean>
Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal fun clear()
Link copied to clipboard
Link copied to clipboard
fun halfTimer(timer: CountDownTimerState)
Link copied to clipboard
fun invertTimerState(timer: TimerState)
Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
fun removeTimer(timer: TimerState)
Link copied to clipboard
fun replaceTitle(timer: TimerState, newTitle: String)
Link copied to clipboard
fun resetTimer(timer: TimerState)
Link copied to clipboard
fun swapTimer(from: Int, to: Int)
Link copied to clipboard
@RequiresPermission(value = "android.permission.POST_NOTIFICATIONS")
fun tryToSendNotificationForTimer(timer: TimerState, context: Context)