com.bumptech.glide
Class RequestManager.ImageModelRequest<T>

java.lang.Object
  extended by com.bumptech.glide.RequestManager.ImageModelRequest<T>
Type Parameters:
T - The type of the model.
Enclosing class:
RequestManager

public final class RequestManager.ImageModelRequest<T>
extends Object

A helper class for building requests with custom ModelLoaders that translate models to InputStream resources for loading images.


Method Summary
 DrawableTypeRequest<T> from(Class<T> modelClass)
          Returns a request builder that uses the provided ModelLoader to load images from an InputStreams obtained from models of the given model class.
 DrawableTypeRequest<T> load(T model)
          Returns a request builder that uses the provided ModelLoader to load an image from an InputStream obtained from the given model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public DrawableTypeRequest<T> from(Class<T> modelClass)
Returns a request builder that uses the provided ModelLoader to load images from an InputStreams obtained from models of the given model class.

Parameters:
modelClass - The class of model to load images from.

load

public DrawableTypeRequest<T> load(T model)
Returns a request builder that uses the provided ModelLoader to load an image from an InputStream obtained from the given model.

Parameters:
model - The model to load an image from.
See Also:
from(Class)