MonochromaticImage.Builder


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.