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 ComplicationText should be rendered as a placeholder.

boolean equals(Object o)

CharSequence getText()
int hashCode()

boolean isAlwaysEmpty()
boolean isPlaceholder()

Returns if this ComplicationText is a placeholder.

String toString()

Inherited methods

Public constructors

PlainComplicationText

Added in API level 36
public PlainComplicationText (CharSequence mText)

Parameters
mText CharSequence

Public methods

createPlaceholder

Added in API level 36
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

equals

Added in API level 36
public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getText

Added in API level 36
public CharSequence getText ()

Returns
CharSequence

hashCode

Added in API level 36
public int hashCode ()

Returns
int

isAlwaysEmpty

Added in API level 36
public boolean isAlwaysEmpty ()

Returns
boolean

isPlaceholder

Added in API level 36
public boolean isPlaceholder ()

Returns if this ComplicationText is a placeholder.

Returns
boolean

toString

Added in API level 36
public String toString ()

Returns
String