CountdownTimerState

class CountdownTimerState(val endDate: Long)

Represents a countdown timer state with functionality to track the remaining time, control the timer's visibility, and handle the timer's lifecycle events.

This class is designed to work seamlessly with Jetpack Compose by using mutable states to notify recompositions when the state changes.

Parameters

endDate

The end time of the countdown timer, represented in milliseconds since epoch.

Constructors

Link copied to clipboard
constructor(endDate: Long)

Creates a new CountdownTimerState instance.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Indicates whether the countdown timer is currently visible.

Link copied to clipboard

The remaining time in milliseconds. This is updated in real-time as the timer counts down.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setOnTimerFinishListener(action: () -> Unit)
Link copied to clipboard