MonochromaticImage.Builder


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

class MonochromaticImage.Builder


Builder for MonochromaticImage.

Summary

Public constructors

Builder(image: Icon)

Public functions

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

Builder

Added in 1.0.0
Builder(image: Icon)
Parameters
image: Icon

the Icon representing the image

Public functions

build

Added in 1.0.0
fun build(): MonochromaticImage

Constructs the MonochromaticImage.

setAmbientImage

Added in 1.0.0
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.