ShortTextComplicationData

public final class ShortTextComplicationData extends ComplicationData


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

Public fields

contentDescription

@Nullable
public final @Nullable ComplicationText contentDescription

monochromaticImage

@Nullable
public final @Nullable MonochromaticImage monochromaticImage

tapAction

@Nullable
public final @Nullable PendingIntent tapAction

text

@NonNull
public final @NonNull ComplicationText text

title

@Nullable
public final @Nullable ComplicationText title

type

@NonNull
public final @NonNull ComplicationType type

validTimeRange

@NonNull
public final @NonNull TimeRange validTimeRange

Describes when the complication should be displayed.

Whether the complication is active and should be displayed at the given time should be checked with TimeRange.contains.