CountdownTimerState

Counts down to endTimeMillis, a wall clock time in milliseconds since the epoch.

The remaining time is always worked out from the clock rather than from ticks, so the timer stays correct after it leaves the screen and comes back, or after the process is recreated. Create it with rememberCountdownTimerState and pass it to CountdownTimer, which keeps it running.

Constructors

Link copied to clipboard
constructor(endTimeMillis: Long)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Time left, never negative. Updates once per second while a CountdownTimer shows this state.