ComplicationData

public class ComplicationData

Known direct subclasses
EmptyComplicationData

Type sent when the user has specified that an active complication should have no complication data source, i.e.

LongTextComplicationData

Type used for complications where the primary piece of data is a piece of text.

MonochromaticImageComplicationData

Type used for complications which consist only of a MonochromaticImage.

NoDataComplicationData

Type that can be sent by any complication data source, regardless of the configured type, when the complication data source has no data to be displayed.

NoPermissionComplicationData

Type sent by the system when the watch face does not have permission to receive complication data.

NotConfiguredComplicationData

Type sent when a complication does not have a complication data source configured.

PhotoImageComplicationData

Type used for complications which consist only of an image that is expected to fill a large part of the watch face, large enough to be shown as either a background or as part of a high resolution complication.

RangedValueComplicationData

Type used for complications including a numerical value within a range, such as a percentage.

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).

SmallImageComplicationData

Type used for complications which consist only of a SmallImage.


Base type for all different types of ComplicationData types.

Summary

Public fields

final @Nullable PendingIntent
final @NonNull ComplicationType
final @NonNull TimeRange

Describes when the complication should be displayed.

Public fields

tapAction

@Nullable
public final @Nullable PendingIntent tapAction

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.