1 package android.support.v7.graphics { 2 3 public final class Palette { 4 method public static android.support.v7.graphics.Palette.Builder from(android.graphics.Bitmap); 5 method public static android.support.v7.graphics.Palette from(java.util.List<android.support.v7.graphics.Palette.Swatch>); 6 method public static deprecated android.support.v7.graphics.Palette generate(android.graphics.Bitmap); 7 method public static deprecated android.support.v7.graphics.Palette generate(android.graphics.Bitmap, int); 8 method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generateAsync(android.graphics.Bitmap, android.support.v7.graphics.Palette.PaletteAsyncListener); 9 method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generateAsync(android.graphics.Bitmap, int, android.support.v7.graphics.Palette.PaletteAsyncListener); 10 method public int getDarkMutedColor(int); 11 method public android.support.v7.graphics.Palette.Swatch getDarkMutedSwatch(); 12 method public int getDarkVibrantColor(int); 13 method public android.support.v7.graphics.Palette.Swatch getDarkVibrantSwatch(); 14 method public int getLightMutedColor(int); 15 method public android.support.v7.graphics.Palette.Swatch getLightMutedSwatch(); 16 method public int getLightVibrantColor(int); 17 method public android.support.v7.graphics.Palette.Swatch getLightVibrantSwatch(); 18 method public int getMutedColor(int); 19 method public android.support.v7.graphics.Palette.Swatch getMutedSwatch(); 20 method public java.util.List<android.support.v7.graphics.Palette.Swatch> getSwatches(); 21 method public int getVibrantColor(int); 22 method public android.support.v7.graphics.Palette.Swatch getVibrantSwatch(); 23 } 24 25 public static final class Palette.Builder { 26 ctor public Palette.Builder(android.graphics.Bitmap); 27 ctor public Palette.Builder(java.util.List<android.support.v7.graphics.Palette.Swatch>); 28 method public android.support.v7.graphics.Palette.Builder addFilter(android.support.v7.graphics.Palette.Filter); 29 method public android.support.v7.graphics.Palette.Builder clearFilters(); 30 method public android.support.v7.graphics.Palette generate(); 31 method public android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generate(android.support.v7.graphics.Palette.PaletteAsyncListener); 32 method public android.support.v7.graphics.Palette.Builder maximumColorCount(int); 33 method public android.support.v7.graphics.Palette.Builder resizeBitmapSize(int); 34 } 35 36 public static abstract interface Palette.Filter { 37 method public abstract boolean isAllowed(int, float[]); 38 } 39 40 public static abstract interface Palette.PaletteAsyncListener { 41 method public abstract void onGenerated(android.support.v7.graphics.Palette); 42 } 43 44 public static final class Palette.Swatch { 45 ctor public Palette.Swatch(int, int); 46 method public int getBodyTextColor(); 47 method public float[] getHsl(); 48 method public int getPopulation(); 49 method public int getRgb(); 50 method public int getTitleTextColor(); 51 } 52 53 } 54 55