-
public final class ImageRequestWrapper class of the ImageRequest class of coil to offer basic functionality to the image loading.
-
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>placeholder(@DrawableRes() Integer drawableResId)Set the placeholder drawable to use when the request starts. final <ERROR CLASS>placeholder(Drawable drawable)Set the placeholder drawable to use when the request starts. final <ERROR CLASS>error(@DrawableRes() Integer drawableResId)Set the error drawable to use if the request fails. final <ERROR CLASS>error(Drawable drawable)Set the error drawable to use if the request fails. final <ERROR CLASS>fallback(@DrawableRes() Integer drawableResId)Set the fallback drawable to use if image is null. final <ERROR CLASS>fallback(Drawable drawable)Set the fallback drawable to use if image is null. final <ERROR CLASS>crossfade(Boolean enable)final <ERROR CLASS>crossfade(Integer durationMillis)final Unitsize(@Px() Integer size)Set the requested width/height. final Unitsize(@Px() Integer width, @Px() Integer height)Set the requested width/height. final <ERROR CLASS>bitmapConfig(Bitmap.Config config)-
-
Method Detail
-
placeholder
final <ERROR CLASS> placeholder(@DrawableRes() Integer drawableResId)
Set the placeholder drawable to use when the request starts.
-
placeholder
final <ERROR CLASS> placeholder(Drawable drawable)
Set the placeholder drawable to use when the request starts.
-
error
final <ERROR CLASS> error(@DrawableRes() Integer drawableResId)
Set the error drawable to use if the request fails.
-
error
final <ERROR CLASS> error(Drawable drawable)
Set the error drawable to use if the request fails.
-
fallback
final <ERROR CLASS> fallback(@DrawableRes() Integer drawableResId)
Set the fallback drawable to use if image is null.
-
fallback
final <ERROR CLASS> fallback(Drawable drawable)
Set the fallback drawable to use if image is null.
-
bitmapConfig
final <ERROR CLASS> bitmapConfig(Bitmap.Config config)
-
-
-
-