Status.TimerOrStopwatchPart
abstract class Status.TimerOrStopwatchPart : Status.Part
Status.StopwatchPart |
An Ongoing activity status (or part of it) representing a stopwatch |
Status.TimerPart |
An Ongoing activity status (or part of it) representing a timer. |
Base class for TimerPart and StopwatchPart, defines the getters but can't be created directly, create one of those instead.
Summary
Public functions |
|
|---|---|
Boolean |
|
Long |
getNextChangeTimeMillis(fromTimeMillis: Long) |
Long |
|
CharSequence |
See |
Long |
|
Long |
|
Boolean |
Determines if this has a total duration set. |
Int |
hashCode() |
Boolean |
|
Boolean |
isPaused()Determines if this Timer or Stopwatch is paused. i.e. the display representation will not change over time. |
Public functions
getTimeZeroMillis
fun getTimeZeroMillis(): Long
| Returns | |
|---|---|
Long |
the time at which this Timer or Stopwatch will display 0, will usually be in the past for a stopwatch and in the future for timers. |
getTotalDurationMillis
fun getTotalDurationMillis(): Long
| Returns | |
|---|---|
Long |
the total duration of this timer/stopwatch, if set. Use |
hasTotalDuration
fun hasTotalDuration(): Boolean
Determines if this has a total duration set.
| Returns | |
|---|---|
Boolean |
|
isCountDown
fun isCountDown(): Boolean
| Returns | |
|---|---|
Boolean |
|