LongTextComplicationData

public final class LongTextComplicationData extends ComplicationData


Type used for complications where the primary piece of data is a piece of text. The text may be accompanied by an icon and/or a title.

The text is expected to always be displayed.

The title, if provided, it is expected that this field will be displayed.

If at least one of the icon and image is provided, one of these should be displayed.

Summary

Public fields

contentDescription

@Nullable
public final @Nullable ComplicationText contentDescription

monochromaticImage

@Nullable
public final @Nullable MonochromaticImage monochromaticImage

smallImage

@Nullable
public final @Nullable SmallImage smallImage

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.