Image

Contains a reference to an image resource, for displaying in a watch face.

Introduced in Wear OS 4.

Syntax

<Image resource="string">
</Image>

Attributes

The Image element has the following attributes. Some attributes are required while others are optional.

Attributes

The only attribute, resource, is required. This is either a string that represents an image resource ID, or one of the following expressions related to complication elements:

  • [COMPLICATION.MONOCHROMATIC_IMAGE]
  • [COMPLICATION.SMALL_IMAGE]
  • [COMPLICATION.PHOTO_IMAGE]