Status.StopwatchPart
class Status.StopwatchPart : Status.TimerOrStopwatchPart
| kotlin.Any | |||
| ↳ | 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(timeZeroMillis: Long)Create a Part representing a stopwatch. |
StopwatchPart(timeZeroMillis: Long, pausedAtMillis: Long)Create a Part representing a stopwatch. |
StopwatchPart(Create a Part representing a stopwatch. |
Inherited functions |
||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
StopwatchPart
StopwatchPart(timeZeroMillis: Long)
Create a Part representing a stopwatch.
| Parameters | |
|---|---|
timeZeroMillis: Long |
timestamp of the time at which this stopwatch started running. |
StopwatchPart
StopwatchPart(timeZeroMillis: Long, pausedAtMillis: Long)
Create a Part representing a stopwatch.
StopwatchPart
StopwatchPart(
timeZeroMillis: Long,
pausedAtMillis: Long,
totalDurationMillis: Long
)
Create a Part representing a stopwatch.
| Parameters | |
|---|---|
timeZeroMillis: Long |
timestamp of the time at which this stopwatch started running. |
pausedAtMillis: Long |
timestamp of the time when this stopwatch was paused. Or |
totalDurationMillis: Long |
total duration of this stopwatch, useful to display as a progress bar or similar. |