WatchFace.OverlayStyle

Added in 1.1.0
Deprecated in 1.2.0

public final class WatchFace.OverlayStyle


This class allows the watch face to configure the status overlay which is rendered by the system on top of the watch face.

Note: This is not a supported API and will be removed.

Summary

Public constructors

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()

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()