Status.StopwatchPart

public final class Status.StopwatchPart extends Status.Part, Status.TimerOrStopwatchPart implements TimeDependentText

Object
   ↳ Status.Part
     ↳ Status.TimerOrStopwatchPart
       ↳ 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(
    long timeZeroMillis,
    long pausedAtMillis,
    long totalDurationMillis
)

Create a Part representing a stopwatch.

Inherited methods

From class Status.TimerOrStopwatchPart
@Override boolean
@Override long
getNextChangeTimeMillis(long fromTimeMillis)

See getNextChangeTimeMillis

long
@NonNull @Override CharSequence
getText(@NonNull Context context, long timeNowMillis)

See getText

long
long
boolean

Determines if this has a total duration set.

@Override int
boolean
boolean

Determines if this Timer or Stopwatch is paused.

Public constructors

StopwatchPart

public StopwatchPart(long timeZeroMillis)

Create a Part representing a stopwatch.