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

*** ** * ** ***


```
public final class WatchFaceColorsWireFormat implements VersionedParcelable, Parcelable
```

<br />

*** ** * ** ***

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

Wire format for WatchFaceColorsWireFormat.

## Summary

| ### Constants |
|---|---|
| `static final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat>` | `https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#CREATOR()` **This field is deprecated.** Deprecated in Java |

| ### Public constructors |
|---|
| `[WatchFaceColorsWireFormat](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#WatchFaceColorsWireFormat(int,int,int))( int primaryColor, int secondaryColor, int tertiaryColor )` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `int` | `[describeContents](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#describeContents())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getPrimaryColor](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getPrimaryColor())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getSecondaryColor](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getSecondaryColor())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getTertiaryColor](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#getTertiaryColor())()` **This method is deprecated.** Deprecated in Java |
| `void` | `[writeToParcel](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#writeToParcel(android.os.Parcel,int))(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Parcel.html parcel, int flags)` **This method is deprecated.** Deprecated in Java |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

**This field 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)

```
public static final @NonNull Parcelable.Creator<WatchFaceColorsWireFormat> CREATOR
```

> [!CAUTION]
> **This field 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)

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

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

## Public methods

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

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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)

```
public void [writeToParcel](https://developer.android.com/reference/androidx/wear/watchface/data/WatchFaceColorsWireFormat#writeToParcel(android.os.Parcel,int))(@Nullable Parcel parcel, int flags)
```

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

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