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

Overview

An Ongoing activity status (or part of it) representing a timer.

Available since wear-ongoing:1.0.0

Summary

Constructors
publicTimerPart(long timeZeroMillis)

Create a Part representing a timer.

publicTimerPart(long timeZeroMillis, long pausedAtMillis)

Create a Part representing a timer.

publicTimerPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis)

Create a Part representing a timer.

Methods
from Status.TimerOrStopwatchPartequals, getNextChangeTimeMillis, getPausedAtMillis, getText, getTimeZeroMillis, getTotalDurationMillis, hashCode, hasTotalDuration, isCountDown, isPaused
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Constructors

public TimerPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis)

Create a Part representing a timer.

Parameters:

timeZeroMillis: timestamp of the time at the future in which this Timer should display 0.
pausedAtMillis: timestamp of the time when this timer was paused. Or -1L if this timer is running.
totalDurationMillis: total duration of this timer, useful to display as a progress bar or similar.

public TimerPart(long timeZeroMillis, long pausedAtMillis)

Create a Part representing a timer.

Parameters:

timeZeroMillis: timestamp of the time at the future in which this Timer should display 0.
pausedAtMillis: timestamp of the time when this timer was paused. Or -1L if this timer is running.

public TimerPart(long timeZeroMillis)

Create a Part representing a timer.

Parameters:

timeZeroMillis: timestamp of the time at the future in which this Timer should display 0.