Status.Part


public abstract class Status.Part implements TimeDependentText

Known direct subclasses
Status.TextPart

An Ongoing activity status (or part of it) representing a plain, static text.

Status.TimerOrStopwatchPart

Base class for TimerPart and StopwatchPart, defines the getters but can't be created directly, create one of those instead.

Known indirect subclasses
Status.StopwatchPart

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

Status.TimerPart

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


Abstract class to represent An Ongoing activity status or part of it.

Parts are used to create complex statuses, that may contain several timers, placeholders for text, etc. They may also be used to convey information to the system about this Ongoing Activity.

Summary

Inherited methods

From androidx.wear.ongoing.TimeDependentText
abstract long
getNextChangeTimeMillis(long fromTimeMillis)

Returns the timestamp of the next time when the display may be different from the one at the specified time.

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

Returns a textual representation of the ongoing activity status or a part of it at the given time represented as milliseconds timestamp For forward compatibility, the best way to display this is on a android.widget.TextView