rememberCountdownTimerState

Remembers a timer that ends at endTimeMillis, for example an expiry time sent by your backend. A different endTimeMillis creates a new timer.


Remembers a timer that ends duration after it's first created. The end time is saved, so rotating the device or coming back to the screen doesn't restart the countdown.