# OverlayStyle

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/OverlayStyle.kt+class:androidx.wear.watchface.client.OverlayStyle) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

*** ** * ** ***


```
public final class OverlayStyle
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> OverlayStyle will be removed in a future release.

This class reflects a snapshot of `https://developer.android.com/reference/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 |
|---|
| `[OverlayStyle](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#OverlayStyle())()` **This method is deprecated.** OverlayStyle will be removed in a future release. |
| `[OverlayStyle](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#OverlayStyle(android.graphics.Color,android.graphics.Color))(https://developer.android.com/reference/android/graphics/Color.html backgroundColor, https://developer.android.com/reference/android/graphics/Color.html foregroundColor)` **This method is deprecated.** OverlayStyle will be removed in a future release. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** OverlayStyle will be removed in a future release. |
| `final https://developer.android.com/reference/android/graphics/Color.html` | `[getBackgroundColor](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#getBackgroundColor())()` **This method is deprecated.** OverlayStyle will be removed in a future release. |
| `final https://developer.android.com/reference/android/graphics/Color.html` | `[getForegroundColor](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#getForegroundColor())()` **This method is deprecated.** OverlayStyle will be removed in a future release. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#hashCode())()` **This method is deprecated.** OverlayStyle will be removed in a future release. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#toString())()` **This method is deprecated.** OverlayStyle will be removed in a future release. |

## Public constructors

### OverlayStyle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

```
public [OverlayStyle](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#OverlayStyle())()
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

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

### OverlayStyle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

```
public [OverlayStyle](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#OverlayStyle(android.graphics.Color,android.graphics.Color))(Color backgroundColor, Color foregroundColor)
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#equals(kotlin.Any))(Object other)
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

### getBackgroundColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

```
public final Color [getBackgroundColor](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#getBackgroundColor())()
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

The background color of the status indicator tray. This can be any color, including `https://developer.android.com/reference/android/graphics/Color.html#TRANSPARENT`. If this is `null` then the system default will be used.

### getForegroundColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

```
public final Color [getForegroundColor](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#getForegroundColor())()
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

The background color of items rendered in the status indicator tray. If not `null` then this must be either `https://developer.android.com/reference/android/graphics/Color.html#BLACK` or `https://developer.android.com/reference/android/graphics/Color.html#WHITE`. If this is `null` then the system default will be used.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#hashCode())()
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/wear/watchface/client/OverlayStyle#toString())()
```

> [!CAUTION]
> **This method is deprecated.**   
> OverlayStyle will be removed in a future release.