Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

androidx.palette.graphics

Classes

Palette

A helper class to extract prominent colors from an image.

Target

A class which allows custom selection of colors in a Palette's generation.

Extension functions summary

For Palette
operator Palette.Swatch?
Palette.get(target: Target)

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

Extension functions

get

inline operator fun Palette.get(target: Target): Palette.Swatch?

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