Google is committed to advancing racial equity for Black communities. See how.

RangedValueComplicationData

class RangedValueComplicationData : ComplicationData
kotlin.Any
   ↳ androidx.wear.complications.data.ComplicationData
   ↳ androidx.wear.complications.data.RangedValueComplicationData

Type used for complications including a numerical value within a range, such as a percentage. The value may be accompanied by an icon and/or short text and title.

The value, min, and max fields are required for this type and the value within the range is expected to always be displayed.

The icon, title, and text fields are optional and the watch face may choose which of these fields to display, if any.

Summary

Nested classes

Builder for RangedValueComplicationData.

Public methods
WireComplicationData

Inherited functions
Properties
MonochromaticImage?

Float

Float

ComplicationText?

ComplicationText?

Float

Companion properties
ComplicationType

The ComplicationType corresponding to objects of this type.

Inherited properties

Public methods

asWireComplicationData

fun asWireComplicationData(): WireComplicationData

Properties

image

val image: MonochromaticImage?

max

val max: Float

min

val min: Float

text

val text: ComplicationText?

title

val title: ComplicationText?

value

val value: Float

Companion properties

TYPE

val TYPE: ComplicationType

The ComplicationType corresponding to objects of this type.