androidx.palette.graphics


Interfaces

Palette.Filter

A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.

Palette.PaletteAsyncListener

Listener to be used with generateAsync or generateAsync

Classes

Palette

A helper class to extract prominent colors from an image.

Palette.Builder

Builder class for generating Palette instances.

Palette.Swatch

Represents a color swatch generated from an image's palette.

Target

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

Target.Builder

Builder class for generating custom Target instances.

Extension functions summary

inline 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

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.