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