MonochromaticImage.Builder

public final class MonochromaticImage.Builder


Builder for MonochromaticImage.

Summary

Public constructors

Public methods

final @NonNull MonochromaticImage

Constructs the MonochromaticImage.

final @NonNull MonochromaticImage.Builder
setAmbientImage(@Nullable Icon ambientImage)

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

Public constructors

Builder

public final Builder(@NonNull Icon image)
Parameters
@NonNull Icon image

the Icon representing the image

Public methods

build

@NonNull
public final MonochromaticImage build()

Constructs the MonochromaticImage.

setAmbientImage

@NonNull
public final MonochromaticImage.Builder setAmbientImage(@Nullable Icon ambientImage)

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.