public final class MonochromaticImage


A simple, monochromatic image that can be tinted by the watch face.

A monochromatic image doesn't have to be black and white, it can have a single color associated with the provider / brand with the expectation that the watch face may recolor it (typically using a SRC_IN filter).

An ambient alternative is provided that may be shown instead of the regular image while the watch is not active.

Summary

Nested types

public final class MonochromaticImage.Builder

Builder for MonochromaticImage.

Public fields

static final @NonNull MonochromaticImage

For use when the real data isn't available yet, this MonochromaticImage should be rendered as a placeholder.

Public methods

boolean
equals(Object other)
final Icon

The image to be shown when the device is in ambient mode to save power or avoid burn in

final @NonNull Icon

The image itself

int
@NonNull String

Public fields

PLACEHOLDER

public static final @NonNull MonochromaticImage PLACEHOLDER

For use when the real data isn't available yet, this MonochromaticImage should be rendered as a placeholder. It is suggested that it should be rendered with a light grey box.

Note a placeholder may only be used in the context of NoDataComplicationData.placeholder.

Public methods

equals

public boolean equals(Object other)

getAmbientImage

Added in 1.0.0
public final Icon getAmbientImage()

The image to be shown when the device is in ambient mode to save power or avoid burn in

getImage

Added in 1.0.0
public final @NonNull Icon getImage()

The image itself

hashCode

public int hashCode()

toString

public @NonNull String toString()