Google is committed to advancing racial equity for Black communities. See how.

ShortTextComplicationData

class ShortTextComplicationData : ComplicationData
kotlin.Any
   ↳ androidx.wear.complications.data.ComplicationData
   ↳ androidx.wear.complications.data.ShortTextComplicationData

Type used for complications where the primary piece of data is a short piece of text (expected to be no more than seven characters in length). The text may be accompanied by an icon or a title or both.

If only one of icon and title is provided, it is expected that it will be displayed. If both are provided, it is expected that at least one of these will be displayed.

Summary

Nested classes

Builder for ShortTextComplicationData.

Public methods
WireComplicationData

Inherited functions
Properties
MonochromaticImage?

ComplicationText

ComplicationText?

Companion properties
ComplicationType

The ComplicationType corresponding to objects of this type.

Inherited properties

Public methods

asWireComplicationData

fun asWireComplicationData(): WireComplicationData

Properties

image

val image: MonochromaticImage?

text

val text: ComplicationText

title

val title: ComplicationText?

Companion properties

TYPE

val TYPE: ComplicationType

The ComplicationType corresponding to objects of this type.