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

SmallImageType

enum class SmallImageType
kotlin.Any
   ↳ kotlin.Enum<androidx.wear.complications.data.SmallImageType>
   ↳ androidx.wear.complications.data.SmallImageType

The type of image being provided.

This is used to guide rendering on the watch face.

Summary

Enum values

Type for images that have a transparent background and are expected to be drawn entirely within the space available, such as a launcher image.

Type for images which are photos that are expected to fill the space available.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

ICON

enum val ICON : SmallImageType

Type for images that have a transparent background and are expected to be drawn entirely within the space available, such as a launcher image. Watch faces may add padding when drawing these images, but should never crop these images. Icons may be tinted to fit the complication style.

PHOTO

enum val PHOTO : SmallImageType

Type for images which are photos that are expected to fill the space available. Images of this style may be cropped to fit the shape of the complication - in particular, the image may be cropped to a circle. Photos my not be recolored.