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

Overview

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

Available since wear-ongoing:1.0.0

Summary

Constructors
publicStopwatchPart(long timeZeroMillis)

Create a Part representing a stopwatch.

publicStopwatchPart(long timeZeroMillis, long pausedAtMillis)

Create a Part representing a stopwatch.

publicStopwatchPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis)

Create a Part representing a stopwatch.

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 StopwatchPart(long timeZeroMillis, long pausedAtMillis, long totalDurationMillis)

Create a Part representing a stopwatch.

Parameters:

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

public StopwatchPart(long timeZeroMillis, long pausedAtMillis)

Create a Part representing a stopwatch.

Parameters:

timeZeroMillis: timestamp of the time at which this stopwatch started running.
pausedAtMillis: timestamp of the time when this stopwatch was paused. Or -1L if this stopwatch is running.

public StopwatchPart(long timeZeroMillis)

Create a Part representing a stopwatch.

Parameters:

timeZeroMillis: timestamp of the time at which this stopwatch started running.