Home | History | Annotate | Download | only in api
      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 generate();
     29     method public android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, android.support.v7.graphics.Palette> generate(android.support.v7.graphics.Palette.PaletteAsyncListener);
     30     method public android.support.v7.graphics.Palette.Builder maximumColorCount(int);
     31     method public android.support.v7.graphics.Palette.Builder resizeBitmapSize(int);
     32   }
     33 
     34   public static abstract interface Palette.PaletteAsyncListener {
     35     method public abstract void onGenerated(android.support.v7.graphics.Palette);
     36   }
     37 
     38   public static final class Palette.Swatch {
     39     ctor public Palette.Swatch(int, int);
     40     method public int getBodyTextColor();
     41     method public float[] getHsl();
     42     method public int getPopulation();
     43     method public int getRgb();
     44     method public int getTitleTextColor();
     45   }
     46 
     47 }
     48 
     49