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