added in version 24.1.0
belongs to Maven artifact com.android.support:palette-v7:28.0.0-alpha1
belongs to Maven artifact com.android.support:palette-v7:28.0.0-alpha1
Palette.Filter
public
static
interface
Palette.Filter
| android.support.v7.graphics.Palette.Filter |
A Filter provides a mechanism for exercising fine-grained control over which colors
are valid within a resulting Palette.
Summary
Public methods | |
|---|---|
abstract
boolean
|
isAllowed(int rgb, float[] hsl)
Hook to allow clients to be able filter colors from resulting palette. |
Public methods
isAllowed
added in version 24.1.0
boolean isAllowed (int rgb,
float[] hsl)Hook to allow clients to be able filter colors from resulting palette.
| Parameters | |
|---|---|
rgb |
int: the color in RGB888. |
hsl |
float: HSL representation of the color. |
| Returns | |
|---|---|
boolean |
true if the color is allowed, false if not. |
See also:
Interfaces
Classes