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

*** ** * ** ***


```
public class ChipColors
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use the new class `https://developer.android.com/reference/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/androidx/wear/tiles/material/ChipDefaults#PRIMARY_COLORS()` for the default colors used in a primary styled `https://developer.android.com/reference/androidx/wear/tiles/material/Chip`. See `https://developer.android.com/reference/androidx/wear/tiles/material/ChipDefaults#SECONDARY_COLORS()` for the default colors used in a secondary styled `https://developer.android.com/reference/androidx/wear/tiles/material/Chip`.

## Summary

| ### Public constructors |
|---|
| `[ChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#ChipColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp backgroundColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp contentColor )` **This method is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#ChipColors(int,int))(@https://developer.android.com/reference/androidx/annotation/ColorInt int backgroundColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int contentColor)` **This method is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/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))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp backgroundColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp iconColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp contentColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp secondaryContentColor )` **This method is deprecated.** Deprecated in Java |
| `[ChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#ChipColors(int,int,int,int))( @https://developer.android.com/reference/androidx/annotation/ColorInt int backgroundColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int iconColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int contentColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int secondaryContentColor )` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getBackgroundColor](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#getBackgroundColor())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getContentColor](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#getContentColor())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getIconColor](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#getIconColor())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getSecondaryContentColor](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#getSecondaryContentColor())()` **This method is deprecated.** Deprecated in Java |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors` | `[primaryChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#primaryChipColors(androidx.wear.tiles.material.Colors))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/Colors colors)` **This method is deprecated.** Deprecated in Java |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors` | `[secondaryChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#secondaryChipColors(androidx.wear.tiles.material.Colors))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/Colors colors)` **This method 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)

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

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

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp backgroundColor` | The background color to be used for a chip Tiles component. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp contentColor` | 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)

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

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

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

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int backgroundColor` | The background color to be used for a chip Tiles component. Should be in ARGB format. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int contentColor` | 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)

```
public [ChipColors](https://developer.android.com/reference/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))(
    @NonNull ColorBuilders.ColorProp backgroundColor,
    @NonNull ColorBuilders.ColorProp iconColor,
    @NonNull ColorBuilders.ColorProp contentColor,
    @NonNull ColorBuilders.ColorProp secondaryContentColor
)
```

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

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

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp backgroundColor` | The background color to be used for a chip Tiles component. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp iconColor` | The color to be used for an icon in a chip Tiles component. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp contentColor` | The text color to be used for a main text in a chip Tiles component. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp secondaryContentColor` | 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)

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

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

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

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

## Public methods

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

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

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

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

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

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

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

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

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

```
public static @NonNull ChipColors [primaryChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#primaryChipColors(androidx.wear.tiles.material.Colors))(@NonNull Colors colors)
```

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

Returns a `https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors` object, using the current Primary colors from the given `https://developer.android.com/reference/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)

```
public static @NonNull ChipColors [secondaryChipColors](https://developer.android.com/reference/androidx/wear/tiles/material/ChipColors#secondaryChipColors(androidx.wear.tiles.material.Colors))(@NonNull Colors colors)
```

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

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