Home | History | Annotate | Download | only in api
      1 package androidx.palette.graphics {
      2 
      3   public final class Palette {
      4     method public static androidx.palette.graphics.Palette.Builder from(android.graphics.Bitmap);
      5     method public static androidx.palette.graphics.Palette from(java.util.List<androidx.palette.graphics.Palette.Swatch>);
      6     method public static deprecated androidx.palette.graphics.Palette generate(android.graphics.Bitmap);
      7     method public static deprecated androidx.palette.graphics.Palette generate(android.graphics.Bitmap, int);
      8     method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, androidx.palette.graphics.Palette> generateAsync(android.graphics.Bitmap, androidx.palette.graphics.Palette.PaletteAsyncListener);
      9     method public static deprecated android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, androidx.palette.graphics.Palette> generateAsync(android.graphics.Bitmap, int, androidx.palette.graphics.Palette.PaletteAsyncListener);
     10     method public int getColorForTarget(androidx.palette.graphics.Target, int);
     11     method public int getDarkMutedColor(int);
     12     method public androidx.palette.graphics.Palette.Swatch getDarkMutedSwatch();
     13     method public int getDarkVibrantColor(int);
     14     method public androidx.palette.graphics.Palette.Swatch getDarkVibrantSwatch();
     15     method public int getDominantColor(int);
     16     method public androidx.palette.graphics.Palette.Swatch getDominantSwatch();
     17     method public int getLightMutedColor(int);
     18     method public androidx.palette.graphics.Palette.Swatch getLightMutedSwatch();
     19     method public int getLightVibrantColor(int);
     20     method public androidx.palette.graphics.Palette.Swatch getLightVibrantSwatch();
     21     method public int getMutedColor(int);
     22     method public androidx.palette.graphics.Palette.Swatch getMutedSwatch();
     23     method public androidx.palette.graphics.Palette.Swatch getSwatchForTarget(androidx.palette.graphics.Target);
     24     method public java.util.List<androidx.palette.graphics.Palette.Swatch> getSwatches();
     25     method public java.util.List<androidx.palette.graphics.Target> getTargets();
     26     method public int getVibrantColor(int);
     27     method public androidx.palette.graphics.Palette.Swatch getVibrantSwatch();
     28   }
     29 
     30   public static final class Palette.Builder {
     31     ctor public Palette.Builder(android.graphics.Bitmap);
     32     ctor public Palette.Builder(java.util.List<androidx.palette.graphics.Palette.Swatch>);
     33     method public androidx.palette.graphics.Palette.Builder addFilter(androidx.palette.graphics.Palette.Filter);
     34     method public androidx.palette.graphics.Palette.Builder addTarget(androidx.palette.graphics.Target);
     35     method public androidx.palette.graphics.Palette.Builder clearFilters();
     36     method public androidx.palette.graphics.Palette.Builder clearRegion();
     37     method public androidx.palette.graphics.Palette.Builder clearTargets();
     38     method public androidx.palette.graphics.Palette generate();
     39     method public android.os.AsyncTask<android.graphics.Bitmap, java.lang.Void, androidx.palette.graphics.Palette> generate(androidx.palette.graphics.Palette.PaletteAsyncListener);
     40     method public androidx.palette.graphics.Palette.Builder maximumColorCount(int);
     41     method public androidx.palette.graphics.Palette.Builder resizeBitmapArea(int);
     42     method public deprecated androidx.palette.graphics.Palette.Builder resizeBitmapSize(int);
     43     method public androidx.palette.graphics.Palette.Builder setRegion(int, int, int, int);
     44   }
     45 
     46   public static abstract interface Palette.Filter {
     47     method public abstract boolean isAllowed(int, float[]);
     48   }
     49 
     50   public static abstract interface Palette.PaletteAsyncListener {
     51     method public abstract void onGenerated(androidx.palette.graphics.Palette);
     52   }
     53 
     54   public static final class Palette.Swatch {
     55     ctor public Palette.Swatch(int, int);
     56     method public int getBodyTextColor();
     57     method public float[] getHsl();
     58     method public int getPopulation();
     59     method public int getRgb();
     60     method public int getTitleTextColor();
     61   }
     62 
     63   public final class Target {
     64     method public float getLightnessWeight();
     65     method public float getMaximumLightness();
     66     method public float getMaximumSaturation();
     67     method public float getMinimumLightness();
     68     method public float getMinimumSaturation();
     69     method public float getPopulationWeight();
     70     method public float getSaturationWeight();
     71     method public float getTargetLightness();
     72     method public float getTargetSaturation();
     73     method public boolean isExclusive();
     74     field public static final androidx.palette.graphics.Target DARK_MUTED;
     75     field public static final androidx.palette.graphics.Target DARK_VIBRANT;
     76     field public static final androidx.palette.graphics.Target LIGHT_MUTED;
     77     field public static final androidx.palette.graphics.Target LIGHT_VIBRANT;
     78     field public static final androidx.palette.graphics.Target MUTED;
     79     field public static final androidx.palette.graphics.Target VIBRANT;
     80   }
     81 
     82   public static final class Target.Builder {
     83     ctor public Target.Builder();
     84     ctor public Target.Builder(androidx.palette.graphics.Target);
     85     method public androidx.palette.graphics.Target build();
     86     method public androidx.palette.graphics.Target.Builder setExclusive(boolean);
     87     method public androidx.palette.graphics.Target.Builder setLightnessWeight(float);
     88     method public androidx.palette.graphics.Target.Builder setMaximumLightness(float);
     89     method public androidx.palette.graphics.Target.Builder setMaximumSaturation(float);
     90     method public androidx.palette.graphics.Target.Builder setMinimumLightness(float);
     91     method public androidx.palette.graphics.Target.Builder setMinimumSaturation(float);
     92     method public androidx.palette.graphics.Target.Builder setPopulationWeight(float);
     93     method public androidx.palette.graphics.Target.Builder setSaturationWeight(float);
     94     method public androidx.palette.graphics.Target.Builder setTargetLightness(float);
     95     method public androidx.palette.graphics.Target.Builder setTargetSaturation(float);
     96   }
     97 
     98 }
     99 
    100