|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bumptech.glide.load.engine.prefill.PreFillType.Builder
public static class PreFillType.Builder
Builder for PreFillType.
| Constructor Summary | |
|---|---|
PreFillType.Builder(int size)
Constructor for a builder that uses the given size as the width and height of the Bitmaps to prefill. |
|
PreFillType.Builder(int width,
int height)
Constructor for a builder that uses the given dimensions as the dimensions of the Bitmaps to prefill. |
|
| Method Summary | |
|---|---|
PreFillType.Builder |
setConfig(android.graphics.Bitmap.Config config)
Sets the Bitmap.Config for the Bitmaps to pre-fill. |
PreFillType.Builder |
setWeight(int weight)
Sets the weight to use to balance how many Bitmaps of this type are prefilled relative to the other requested types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreFillType.Builder(int size)
size - The width and height in pixels of the Bitmaps to prefill.
public PreFillType.Builder(int width,
int height)
width - The width in pixels of the Bitmaps to prefill.height - The height in pixels of the Bitmaps to prefill.| Method Detail |
|---|
public PreFillType.Builder setConfig(android.graphics.Bitmap.Config config)
Bitmap.Config for the Bitmaps to pre-fill.
config - The config to use, or null to use Glide's default.
public PreFillType.Builder setWeight(int weight)
weight - An integer indicating how to balance pre-filling this size and configuration of
Bitmap against any other sizes/configurations that may be being pre-filled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||