-
public class PreFillType.BuilderBuilder for PreFillType.
-
-
Field Summary
Fields Modifier and Type Field Description private Bitmap.Configconfigprivate intweight
-
Constructor Summary
Constructors Constructor Description PreFillType.Builder(int size)Constructor for a builder that uses the given size as the width and height of the Bitmaps toprefill. PreFillType.Builder(int width, int height)Constructor for a builder that uses the given dimensions as the dimensions of the Bitmaps toprefill.
-
Method Summary
Modifier and Type Method Description Bitmap.ConfiggetConfig()Returns the current Bitmap.Config. PreFillType.BuildersetConfig(@Nullable() Bitmap.Config config)Sets the Bitmap.Config for the Bitmaps to pre-fill. PreFillType.BuildersetWeight(int weight)Sets the weight to use to balance how many Bitmaps of this type are prefilled relative to theother requested types. -
-
Constructor Detail
-
PreFillType.Builder
PreFillType.Builder(int size)
Constructor for a builder that uses the given size as the width and height of the Bitmaps toprefill.- Parameters:
size- The width and height in pixels of the Bitmaps to prefill.
-
PreFillType.Builder
PreFillType.Builder(int width, int height)
Constructor for a builder that uses the given dimensions as the dimensions of the Bitmaps toprefill.- Parameters:
width- The width in pixels of the Bitmaps to prefill.height- The height in pixels of the Bitmaps to prefill.
-
-
Method Detail
-
getConfig
Bitmap.Config getConfig()
Returns the current Bitmap.Config.
-
setConfig
PreFillType.Builder setConfig(@Nullable() Bitmap.Config config)
Sets the Bitmap.Config for the Bitmaps to pre-fill.
- Parameters:
config- The config to use, or null to use ImageModule default.
-
setWeight
PreFillType.Builder setWeight(int weight)
Sets the weight to use to balance how many Bitmaps of this type are prefilled relative to theother requested types.
- Parameters:
weight- An integer indicating how to balance pre-filling this size and configuration ofBitmap against any other sizes/configurations that may be beingpre-filled.
-
-
-
-