SmallImageType

enum SmallImageType


The type of image being provided.

This is used to guide rendering on the watch face.

Summary

Enum Values

ICON

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

PHOTO

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

Public fields

final @NonNull String
final int

Enum Values

ICON

@NonNull
@NonNull SmallImageType SmallImageType.ICON

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

@NonNull
@NonNull SmallImageType SmallImageType.PHOTO

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.

Public fields

name

@NonNull
public final @NonNull String name

ordinal

@NonNull
public final int ordinal