Interface DownloadRequestBuilder


public interface DownloadRequestBuilder
Builds a download request.
  • Method Details

    • load

      DownloadRequestBuilder load​(@IdRes int resource)
      Load the request with a resource id.
      Returns:
      Itself for chaining.
    • load

      DownloadRequestBuilder load​(java.lang.String source)
      Load the request with a String source. The source can either be a remote url, or a cloudinary publicId. In the case of a remote url, all cloudinary related builder options will not take place.
      Returns:
      Itself for chaining.
    • transformation

      DownloadRequestBuilder transformation​(com.cloudinary.Transformation transformation)
      Set a Transformation that will be used to generate the url with. Only applies if load(String) was called with a cloudinary publicId.
      Returns:
      Itself for chaining.
    • responsive

      DownloadRequestBuilder responsive​(ResponsiveUrl responsiveUrl)
      Set a ResponsiveUrl that will be used to generate the url with. Only applies if load(String) was called with a cloudinary publicId.
      Returns:
      Itself for chaining
    • responsive

      DownloadRequestBuilder responsive​(ResponsiveUrl.Preset responsivePreset)
      Set a ResponsiveUrl.Preset that will be used to generate the url with. Only applies if load(String) was called with a cloudinary publicId.
      Returns:
      Itself for chaining
    • placeholder

      DownloadRequestBuilder placeholder​(@DrawableRes int resourceId)
      Sets an Android resource id for a Drawable resource to display while a resource is loading.
      Parameters:
      resourceId - The id of the resource to use as a placeholder
      Returns:
      Itself for chaining.
    • callback

      Set a callback to be called for the result of the download request.
      Parameters:
      callback - The callback to be called for the result of the download request.
      Returns:
      Itself for chaining.
    • into

      DownloadRequest into​(android.widget.ImageView imageView)
      Set the target ImageView to load the resource into and start the operation.
      Parameters:
      imageView - The ImageView the resource will be loaded into.
      Returns:
      The dispatched request.