StatusPart
public
abstract
class
StatusPart
extends Object
implements
VersionedParcelable,
TimeDependentText
| java.lang.Object
|
| ↳ |
androidx.wear.ongoing.StatusPart
|
Known direct subclasses
| TextStatusPart |
An Ongoing activity status (or part of it) representing a plain, static text.
|
| TimerStatusPart |
An Ongoing activity status (or part of it) representing a timer or stopwatch.
|
|
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 class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
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
CharSequence
|
getText(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
TextView
|
|
Public constructors
StatusPart
public StatusPart ()