OverlayStyle


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(backgroundColor: Color?, foregroundColor: Color?)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Color?

The background color of the status indicator tray.

Color?

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

Public constructors

OverlayStyle

Added in 1.1.0
Deprecated in 1.2.0
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
OverlayStyle(backgroundColor: Color?, foregroundColor: Color?)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

backgroundColor

Added in 1.1.0
Deprecated in 1.2.0
val backgroundColorColor?

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.

foregroundColor

Added in 1.1.0
Deprecated in 1.2.0
val foregroundColorColor?

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.