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

Builder

class Builder
kotlin.Any
   ↳ androidx.wear.complications.data.MonochromaticImage.Builder

Builder for MonochromaticImage.

Summary

Public constructors
<init>(image: Icon)

Builder for MonochromaticImage.

Public methods
MonochromaticImage

Constructs the MonochromaticImage.

MonochromaticImage.Builder
setAmbientImage(ambientImage: Icon?)

Sets a different image for when the device is ambient mode to save power and prevent burn in.

Public constructors

<init>

Builder(image: Icon)

Builder for MonochromaticImage.

Parameters
image: Icon the Icon representing the image

Public methods

build

fun build(): MonochromaticImage

Constructs the MonochromaticImage.

setAmbientImage

fun setAmbientImage(ambientImage: Icon?): MonochromaticImage.Builder

Sets a different image for when the device is ambient mode to save power and prevent burn in. If no ambient variant is provided, the watch face may not show anything while in ambient mode.