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 TypeMethodDescriptionvoid
onCancelled
(Duration lastCountdownValue) void
Will be called whenever thecountdown
has successfully reached zero, possibly due topremature finishing
.void
void
void
onRestarted
(Duration lastCountdownValue) void
void
void
Will be called whenever thecountdown
is updated as scheduled.
-
Method Details
-
onStarted
-
onUpdate
-
onPaused
- Parameters:
lastCountdownValue
- The value of theCountdown.countdown
at the time it was paused.
-
onResumed
- Parameters:
lastCountdownValue
- The value of theCountdown.countdown
at the time it was resumed.
-
onCancelled
- Parameters:
lastCountdownValue
- The value of theCountdown.countdown
at the time it was cancelled.
-
onReset
- Parameters:
lastCountdownValue
- The value of theCountdown.countdown
at the time it was reset.
-
onRestarted
- Parameters:
lastCountdownValue
- The value of theCountdown.countdown
at the time it was restarted.
-
onFinished
void onFinished()Will be called whenever thecountdown
has successfully reached zero, possibly due topremature finishing
.
-