Package 

Class ImageRequest


  • 
    public final class ImageRequest
    
                        

    Wrapper 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 Unit size(@Px() Integer size) Set the requested width/height.
      final Unit size(@Px() Integer width, @Px() Integer height) Set the requested width/height.
      final <ERROR CLASS> bitmapConfig(Bitmap.Config config)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait