# WatchFaceColors

# WatchFaceColors

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/watchface/WatchFaceColors "View this page in Java")

<br />

```
@WatchFaceExperimental
class WatchFaceColors
```

<br />

*** ** * ** ***

| **This class is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Provides information about the colors of a watch face, exposing the three most representative colors. This may be used by the system to influence the colors used for the system ui.

use Watch Face Format instead

## Summary

|                                                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                                                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[WatchFaceColors](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#WatchFaceColors(android.graphics.Color,android.graphics.Color,android.graphics.Color))~~`(` ` primaryColor: `[Color](https://developer.android.com/reference/android/graphics/Color.html)`,` ` secondaryColor: `[Color](https://developer.android.com/reference/android/graphics/Color.html)`,` ` tertiaryColor: `[Color](https://developer.android.com/reference/android/graphics/Color.html) `)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | ~~[equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#equals(kotlin.Any))~~`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | ~~[hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#hashCode())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | ~~[toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#toString())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |

|                            ### Public properties                             |
|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Color](https://developer.android.com/reference/android/graphics/Color.html) | [primaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#primaryColor()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.     |
| [Color](https://developer.android.com/reference/android/graphics/Color.html) | [secondaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#secondaryColor()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| [Color](https://developer.android.com/reference/android/graphics/Color.html) | [tertiaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#tertiaryColor()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.   |

## Public constructors

### WatchFaceColors

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

```
[WatchFaceColors](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#WatchFaceColors(android.graphics.Color,android.graphics.Color,android.graphics.Color))(
    primaryColor: Color,
    secondaryColor: Color,
    tertiaryColor: Color
)
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

## Public functions

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#equals(kotlin.Any))(other: Any?): Boolean
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#hashCode())(): Int
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### toString

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceColors#toString())(): String
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

## Public properties

### primaryColor

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

```
val primaryColor: Color
```
| **This property is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### secondaryColor

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

```
val secondaryColor: Color
```
| **This property is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### tertiaryColor

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

```
val tertiaryColor: Color
```
| **This property is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff