# PaletteKt

Added in 1.1.0

*** ** * ** ***


```
public final class PaletteKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final https://developer.android.com/reference/androidx/palette/graphics/Palette.Swatch` | `https://developer.android.com/reference/androidx/palette/graphics/PaletteKt#(androidx.palette.graphics.Palette).get(androidx.palette.graphics.Target)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/palette/graphics/Palette receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/palette/graphics/Target target)` Returns the selected swatch for the given target from the palette, or `null` if one could not be found. |

## Public methods

### get

Artifact: [androidx.palette:palette](https://developer.android.com/jetpack/androidx/releases/palette) [View Source](https://cs.android.com/search?q=file:androidx/palette/graphics/Palette.kt+function:get) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/palette#1.1.0)

```
public static final Palette.Swatch get(@NonNull Palette receiver, @NonNull Target target)
```

Returns the selected swatch for the given target from the palette, or `null` if one could not be found.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/palette/graphics/Palette#getSwatchForTarget(androidx.palette.graphics.Target)` |   |