JengaCountdownState

A countdown for JengaOtpResend, measured from a start mark rather than by counting ticks, so it stays correct when the app is paused or frames are dropped.

Create it with rememberJengaCountdown.

Properties

Link copied to clipboard

Whether time is left.

Link copied to clipboard

Time left, never negative.

Functions

Link copied to clipboard
fun restart()

Starts the countdown again from the full duration, e.g. after a code is resent.