OverlayStyle

public final class OverlayStyle


This class reflects a snapshot of androidx.wear.watchface.WatchFace.OverlayStyle.

Note while this plumbing got built, it was never used by the system ui on any platform and it will be removed.

Summary

Public constructors

Default constructor when when there's no data available.

OverlayStyle(Color backgroundColor, Color foregroundColor)

Public methods

boolean
equals(Object other)
final Color

The background color of the status indicator tray.

final Color

The background color of items rendered in the status indicator tray.

int
@NonNull String

Public constructors

OverlayStyle

Added in 1.1.0
Deprecated in 1.2.0
public OverlayStyle()

Default constructor when when there's no data available. E.g. when dealing with an old watch face.

OverlayStyle

Added in 1.1.0
Deprecated in 1.2.0
public OverlayStyle(Color backgroundColor, Color foregroundColor)

Public methods

equals

public boolean equals(Object other)

getBackgroundColor

Added in 1.1.0
Deprecated in 1.2.0
public final Color getBackgroundColor()

The background color of the status indicator tray. This can be any color, including Color.TRANSPARENT. If this is null then the system default will be used.

getForegroundColor

Added in 1.1.0
Deprecated in 1.2.0
public final Color getForegroundColor()

The background color of items rendered in the status indicator tray. If not null then this must be either Color.BLACK or Color.WHITE. If this is null then the system default will be used.

hashCode

public int hashCode()

toString

public @NonNull String toString()