-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATICAllow Coil to automatically determine if the size needs to be exact for this request.
This is the default value for ImageRequest.Builder.precision.
INEXACTAllow the size of the loaded image to not match the requested dimensions exactly. This enables several optimizations:
If the requested dimensions are larger than the original size of the image, it will be loaded using its original dimensions. This uses less memory.
If the image is present in the memory cache at a larger size than the request's dimensions, it will be returned. This increases the hit rate of the memory cache.
Prefer this option if your target can scale the loaded image (e.g. ImageView).
EXACTRequire that the loaded image's dimensions match the request's size and scale exactly.
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrdinal
final Integer getOrdinal()
-
-
-
-