1package 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.Builder clearRegion(); 31 method public android.support.v7.graphics.Palette generate(); 32 method public android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generate(android.support.v7.graphics.Palette.PaletteAsyncListener); 33 method public android.support.v7.graphics.Palette.Builder maximumColorCount(int); 34 method public android.support.v7.graphics.Palette.Builder resizeBitmapSize(int); 35 method public android.support.v7.graphics.Palette.Builder setRegion(int, int, int, int); 36 } 37 38 public static abstract interface Palette.Filter { 39 method public abstract boolean isAllowed(int, float[]); 40 } 41 42 public static abstract interface Palette.PaletteAsyncListener { 43 method public abstract void onGenerated(android.support.v7.graphics.Palette); 44 } 45 46 public static final class Palette.Swatch { 47 ctor public Palette.Swatch(int, int); 48 method public int getBodyTextColor(); 49 method public float[] getHsl(); 50 method public int getPopulation(); 51 method public int getRgb(); 52 method public int getTitleTextColor(); 53 } 54 55} 56 57