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