PlainComplicationText
public
class
PlainComplicationText
extends Object
implements
ComplicationText
| java.lang.Object | |
| ↳ | com.google.wear.services.complications.PlainComplicationText |
A ComplicationText to be used when displaying a static string.
Summary
Public constructors | |
|---|---|
PlainComplicationText(CharSequence mText)
|
|
Public methods | |
|---|---|
static
PlainComplicationText
|
createPlaceholder()
For use when the real data isn't available yet, this |
boolean
|
equals(Object o)
|
CharSequence
|
getText()
|
int
|
hashCode()
|
boolean
|
isAlwaysEmpty()
|
boolean
|
isPlaceholder()
Returns if this |
String
|
toString()
|
Inherited methods | |
|---|---|
Public constructors
PlainComplicationText
public PlainComplicationText (CharSequence mText)
| Parameters | |
|---|---|
mText |
CharSequence |
Public methods
createPlaceholder
public static PlainComplicationText createPlaceholder ()
For use when the real data isn't available yet, this ComplicationText should be
rendered as a placeholder. It is suggested that it should be rendered with a light grey box.
Note a placeholder may only be used in a ComplicationData of type NO_DATA.
| Returns | |
|---|---|
PlainComplicationText |
|
isPlaceholder
public boolean isPlaceholder ()
Returns if this ComplicationText is a placeholder.
| Returns | |
|---|---|
boolean |
|