# WatchFaceColorsWireFormat

Artifact: [androidx.wear.watchface:watchface-data](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/data/WatchFaceColorsWireFormat.java+class:androidx.wear.watchface.data.WatchFaceColorsWireFormat) 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)

*** ** * ** ***


```
class WatchFaceColorsWireFormat : VersionedParcelable, Parcelable
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> use Watch Face Format instead

Wire format for WatchFaceColorsWireFormat.

## Summary

| ### Constants |
|---|---|
| `const https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat!>` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#CREATOR()` **This property is deprecated.** Deprecated in Java |

| ### Public constructors |
|---|
| `[WatchFaceColorsWireFormat](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#WatchFaceColorsWireFormat(int,int,int))( primaryColor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, secondaryColor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, tertiaryColor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[describeContents](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#describeContents())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getPrimaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getPrimaryColor())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getSecondaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getSecondaryColor())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getTertiaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getTertiaryColor())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[writeToParcel](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#writeToParcel(android.os.Parcel,int))(parcel: https://developer.android.com/reference/android/os/Parcel.html?, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

**This property is deprecated.** Deprecated in Java

## Constants

### CREATOR

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)

```
const val CREATOR: Parcelable.Creator<WatchFaceColorsWireFormat!>
```

> [!CAUTION]
> **This property is deprecated.**   
> Deprecated in Java

## Public constructors

### WatchFaceColorsWireFormat

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)

```
[WatchFaceColorsWireFormat](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#WatchFaceColorsWireFormat(int,int,int))(
    primaryColor: Int,
    secondaryColor: Int,
    tertiaryColor: Int
)
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

## Public functions

### describeContents

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)

```
fun [describeContents](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#describeContents())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### getPrimaryColor

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)

```
fun [getPrimaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getPrimaryColor())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### getSecondaryColor

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)

```
fun [getSecondaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getSecondaryColor())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### getTertiaryColor

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)

```
fun [getTertiaryColor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getTertiaryColor())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

### writeToParcel

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)

```
fun [writeToParcel](https://developer.android.com/reference/kotlin/androidx/wear/watchface/data/WatchFaceColorsWireFormat#writeToParcel(android.os.Parcel,int))(parcel: Parcel?, flags: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Serializes this WatchFaceColorsWireFormat to the specified `https://developer.android.com/reference/android/os/Parcel.html`.