WatchFace.OverlayStyle

Added in 1.1.0
Deprecated in 1.2.0

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

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.