summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dynamicui/colorextraction/types/ExtractionType.java
blob: 166c7c6f40463481a9d1fbef2140770f03c5061d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.android.launcher3.dynamicui.colorextraction.types;

import com.android.launcher3.dynamicui.colorextraction.ColorExtractor;
import com.android.launcher3.dynamicui.colorextraction.WallpaperColorsCompat;


/**
 * Interface to allow various color extraction implementations.
 *
 * TODO remove this class if available by platform
 */
public interface ExtractionType {

    /**
     * Executes color extraction by reading WallpaperColors and setting
     * main and secondary colors on GradientColors.
     *
     * @param inWallpaperColors where to read from
     * @param outGradientColors object that should receive the colors
     */
    void extractInto(WallpaperColorsCompat inWallpaperColors,
                     ColorExtractor.GradientColors outGradientColors);
}