androidx.wear.watchface.complications.data


Interfaces

ComplicationText

The text within a complication.

Classes

ColorRamp

Describes an optional color ramp for the progress bar associated with RangedValueComplicationData or GoalProgressComplicationData.

ComplicationData

Base type for all different types of ComplicationData types.

CountDownTimeReference

Defines a point in time the complication is counting down until.

CountUpTimeReference

Defines a point in time the complication is counting up from.

DynamicComplicationText

A ComplicationText where the system evaluates a DynamicString.

EmptyComplicationData

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

GoalProgressComplicationData

Type used for complications which shows the user's progress towards a goal, E.g. you've done 2400 out of your daily target of 10000 steps.

GoalProgressComplicationData.Builder

Builder for GoalProgressComplicationData.

LongTextComplicationData

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

LongTextComplicationData.Builder

Builder for LongTextComplicationData.

MonochromaticImage

A simple, monochromatic image that can be tinted by the watch face.

MonochromaticImage.Builder

Builder for MonochromaticImage.

MonochromaticImageComplicationData

Type used for complications which consist only of a MonochromaticImage.

MonochromaticImageComplicationData.Builder

Builder for MonochromaticImageComplicationData.

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.

NoPermissionComplicationData.Builder

Builder for NoPermissionComplicationData.

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.

PhotoImageComplicationData.Builder

Builder for PhotoImageComplicationData.

PlainComplicationText

A ComplicationText that contains plain text.

PlainComplicationText.Builder

A builder for PlainComplicationText.

RangedValueComplicationData

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

RangedValueComplicationData.Builder

Builder for RangedValueComplicationData.

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

ShortTextComplicationData.Builder

Builder for ShortTextComplicationData.

SmallImage

An image that is expected to cover a small fraction of a watch face occupied by a single complication.

SmallImage.Builder

Builder for SmallImage.

SmallImageComplicationData

Type used for complications which consist only of a SmallImage.

SmallImageComplicationData.Builder

Builder for SmallImageComplicationData.

TimeDifferenceComplicationText

A ComplicationText that represents a time difference.

TimeDifferenceComplicationText.Builder

Builder for ComplicationText representing a time difference.

TimeFormatComplicationText

A ComplicationText that shows a formatted time.

TimeFormatComplicationText.Builder

A builder for TimeFormatComplicationText.

TimeRange

A range of time, that may be unbounded on either side.

WeightedElementsComplicationData

Type used for complications which want to display the breakdown of something (e.g. nutrition data) perhaps as a pie chart, or as a stacked bar chart etc.

WeightedElementsComplicationData.Builder

Builder for WeightedElementsComplicationData.

WeightedElementsComplicationData.Element

Describes a single value within a WeightedElementsComplicationData.

Objects

ComplicationDisplayPolicies

The policies that control when complications should be displayed.

ComplicationPersistencePolicies

The policies that control complication persistence.

Annotations

Enums

ComplicationType

The possible complication data types.

SmallImageType

The type of image being provided.

TimeDifferenceStyle

The styling used for showing a time different by ComplicationText#TimeDifferenceBuilder.

TimeFormatStyle

The format in which the time should be displayed.