Package page.codeberg.friedolyn.util
Interface Countdown.CountdownListener
- Enclosing class:
Countdown
public static interface Countdown.CountdownListener
An object that is interested in the
countdown's progress and that will be notified about any
changes to it.-
Method Summary
Modifier and TypeMethodDescriptionvoidonCancelled(Duration lastCountdownValue) voidWill be called whenever thecountdownhas successfully reached zero, possibly due topremature finishing.voidvoidvoidonRestarted(Duration lastCountdownValue) voidvoidvoidWill be called whenever thecountdownis updated as scheduled.
-
Method Details
-
onStarted
-
onUpdate
-
onPaused
- Parameters:
lastCountdownValue- The value of theCountdown.countdownat the time it was paused.
-
onResumed
- Parameters:
lastCountdownValue- The value of theCountdown.countdownat the time it was resumed.
-
onCancelled
- Parameters:
lastCountdownValue- The value of theCountdown.countdownat the time it was cancelled.
-
onReset
- Parameters:
lastCountdownValue- The value of theCountdown.countdownat the time it was reset.
-
onRestarted
- Parameters:
lastCountdownValue- The value of theCountdown.countdownat the time it was restarted.
-
onFinished
void onFinished()Will be called whenever thecountdownhas successfully reached zero, possibly due topremature finishing.
-