WatchFaceColors


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.

@WatchFaceExperimental
public final class WatchFaceColors


Provides information about the colors of a watch face, exposing the three most representative colors. This may be used by the system to influence the colors used for the system ui.

Summary

Public constructors

WatchFaceColors(
    @NonNull Color primaryColor,
    @NonNull Color secondaryColor,
    @NonNull Color tertiaryColor
)

Public constructors

WatchFaceColors

Added in 1.2.0
public WatchFaceColors(
    @NonNull Color primaryColor,
    @NonNull Color secondaryColor,
    @NonNull Color tertiaryColor
)

Public methods

equals

public boolean equals(Object other)

getPrimaryColor

Added in 1.2.0
public final @NonNull Color getPrimaryColor()

getSecondaryColor

Added in 1.2.0
public final @NonNull Color getSecondaryColor()

getTertiaryColor

Added in 1.2.0
public final @NonNull Color getTertiaryColor()

hashCode

public int hashCode()

toString

public @NonNull String toString()