Status.TimerPart
public final class Status.TimerPart extends Status.TimerOrStopwatchPart
| java.lang.Object | |||
| ↳ | androidx.wear.ongoing.Status.Part | ||
| ↳ | androidx.wear.ongoing.Status.TimerOrStopwatchPart | ||
| ↳ | androidx.wear.ongoing.Status.TimerPart |
An Ongoing activity status (or part of it) representing a timer.
Available since wear-ongoing:1.0.0
Summary
Public constructors |
|---|
TimerPart(long timeZeroMillis)Create a Part representing a timer. |
TimerPart(long timeZeroMillis, long pausedAtMillis)Create a Part representing a timer. |
TimerPart(Create a Part representing a timer. |
Inherited methods |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
TimerPart
public TimerPart(long timeZeroMillis)
Create a Part representing a timer.
| Parameters | |
|---|---|
long timeZeroMillis |
timestamp of the time at the future in which this Timer should display 0. |
TimerPart
public TimerPart(long timeZeroMillis, long pausedAtMillis)
Create a Part representing a timer.
| Parameters | |
|---|---|
long timeZeroMillis |
timestamp of the time at the future in which this Timer should display 0. |
long pausedAtMillis |
timestamp of the time when this timer was paused. Or |
TimerPart
public TimerPart(
long timeZeroMillis,
long pausedAtMillis,
long totalDurationMillis
)
Create a Part representing a timer.
| Parameters | |
|---|---|
long timeZeroMillis |
timestamp of the time at the future in which this Timer should display 0. |
long pausedAtMillis |
timestamp of the time when this timer was paused. Or |
long totalDurationMillis |
total duration of this timer, useful to display as a progress bar or similar. |