# ChipColors

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

*** ** * ** ***


```
class ChipColors
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use the new class `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ChipColors` which provides the same API and functionality.

Represents the background and content colors used in a chip Tiles component.

See `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipDefaults#PRIMARY_COLORS()` for the default colors used in a primary styled `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Chip`. See `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipDefaults#SECONDARY_COLORS()` for the default colors used in a secondary styled `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Chip`.

## Summary

| ### Public constructors |
|---|
| `[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))( backgroundColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp, contentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp )` **This function is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(int,int))(backgroundColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, contentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))( backgroundColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp, iconColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp, contentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp, secondaryContentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp )` **This function is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(int,int,int,int))( backgroundColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, iconColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, contentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, secondaryContentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getBackgroundColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getBackgroundColor())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getContentColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getContentColor())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getIconColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getIconColor())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getSecondaryContentColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getSecondaryContentColor())()` **This function is deprecated.** Deprecated in Java |
| `java-static https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` | `[primaryChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#primaryChipColors(androidx.wear.tiles.material.Colors))(colors: https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Colors)` **This function is deprecated.** Deprecated in Java |
| `java-static https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` | `[secondaryChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#secondaryChipColors(androidx.wear.tiles.material.Colors))(colors: https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Colors)` **This function is deprecated.** Deprecated in Java |

## Public constructors

### ChipColors

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

```
[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))(
    backgroundColor: ColorBuilders.ColorProp,
    contentColor: ColorBuilders.ColorProp
)
```

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

Constructor for the `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object.

| Parameters |
|---|---|
| `backgroundColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The background color to be used for a chip Tiles component. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The content color to be used for all items inside a chip Tiles component. |

### ChipColors

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

```
[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(int,int))(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)
```

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

Constructor for the `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object.

| Parameters |
|---|---|
| `backgroundColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The background color to be used for a chip Tiles component. Should be in ARGB format. |
| `contentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The content color to be used for all items inside a chip Tiles component. Should be in ARGB format. |

### ChipColors

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

```
[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))(
    backgroundColor: ColorBuilders.ColorProp,
    iconColor: ColorBuilders.ColorProp,
    contentColor: ColorBuilders.ColorProp,
    secondaryContentColor: ColorBuilders.ColorProp
)
```

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

Constructor for the `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object.

| Parameters |
|---|---|
| `backgroundColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The background color to be used for a chip Tiles component. |
| `iconColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The color to be used for an icon in a chip Tiles component. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The text color to be used for a main text in a chip Tiles component. |
| `secondaryContentColor: https://developer.android.com/reference/kotlin/androidx/wear/tiles/ColorBuilders.ColorProp` | The text color to be used for a label text in a chip Tiles component. |

### ChipColors

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

```
[ChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#ChipColors(int,int,int,int))(
    backgroundColor: @ColorInt Int,
    iconColor: @ColorInt Int,
    contentColor: @ColorInt Int,
    secondaryContentColor: @ColorInt Int
)
```

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

Constructor for the `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object.

| Parameters |
|---|---|
| `backgroundColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The background color to be used for a chip Tiles component. Should be in ARGB format. |
| `iconColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The color to be used for an icon in a chip Tiles component. Should be in ARGB format. |
| `contentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The text color to be used for a main text in a chip Tiles component. Should be in ARGB format. |
| `secondaryContentColor: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The text color to be used for a label text in a chip Tiles component. Should be in ARGB format. |

## Public functions

### getBackgroundColor

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

```
fun [getBackgroundColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getBackgroundColor())(): ColorBuilders.ColorProp
```

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

The background color to be used on a chip Tiles components.

### getContentColor

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

```
fun [getContentColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getContentColor())(): ColorBuilders.ColorProp
```

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

The main text color to be used on a chip Tiles components.

### getIconColor

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

```
fun [getIconColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getIconColor())(): ColorBuilders.ColorProp
```

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

The icon color to be used on a chip Tiles components.

### getSecondaryContentColor

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

```
fun [getSecondaryContentColor](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#getSecondaryContentColor())(): ColorBuilders.ColorProp
```

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

The label text color to be used on a chip Tiles components.

### primaryChipColors

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

```
java-static fun [primaryChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#primaryChipColors(androidx.wear.tiles.material.Colors))(colors: Colors): ChipColors
```

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

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object, using the current Primary colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Colors`.

### secondaryChipColors

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

```
java-static fun [secondaryChipColors](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors#secondaryChipColors(androidx.wear.tiles.material.Colors))(colors: Colors): ChipColors
```

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

Returns a `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/ChipColors` object, using the current Surface colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/Colors`.