androidx.wear.complications.data
Interfaces
ComplicationText |
The text within a complication. |
Classes
ComplicationData |
Base type for all different types of ComplicationData types. |
EmptyComplicationData |
Type sent when the user has specified that an active complication should have no provider, i. |
IdAndComplicationData |
A pair of id and ComplicationData. |
LongTextComplicationData |
Type used for complications where the primary piece of data is a piece of text. |
MonochromaticImage |
A simple, monochromatic image that can be tinted by the watch face. |
MonochromaticImageComplicationData |
Type used for complications which consist only of a MonochromaticImage. |
NoDataComplicationData |
Type that can be sent by any provider, regardless of the configured type, when the provider 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 provider configured. |
PhotoImage |
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 |
Type used for complications which consist only of a PhotoImage. |
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). |
SmallImage |
An image that is expected to cover a small fraction of a watch face occupied by a single complication. |
SmallImageComplicationData |
Type used for complications which consist only of a SmallImage. |
TimeDifferenceComplicationText |
A ComplicationText that represents a time difference. |
TimeFormatComplicationText |
A ComplicationText that shows a formatted time. |
TimeRange |
A range of time, that may be unbounded on either side. |
TimeReference |
Expresses a reference point or range for a time difference. |
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. |
Extension functions summary
For android.support.wearable.complications.ComplicationData | |
ComplicationData |
WireComplicationData.asApiComplicationData() |
For kotlin.IntArray | |
Array<ComplicationType> |
Converts an array of integer values uses for serialization into the corresponding array of ComplicationType to . |
For kotlin.collections.Collection | |
IntArray |
Converts an array of ComplicationType to an array of integers with the corresponding wire types. |
Extension functions
asApiComplicationData
fun WireComplicationData.asApiComplicationData(): ComplicationData
asApiComplicationTypes
fun IntArray.asApiComplicationTypes(): Array<ComplicationType>
Converts an array of integer values uses for serialization into the corresponding array of ComplicationType to .
This is only needed internally to convert to the underlying communication protocol.
asWireTypes
fun Collection<ComplicationType>.asWireTypes(): IntArray
Converts an array of ComplicationType to an array of integers with the corresponding wire types.
This is only needed internally to convert to the underlying communication protocol.