下面列出了怎么用com.bumptech.glide.load.model.ModelCache的API类实例代码及写法,或者点击链接到github查看源代码。
public HttpUrlGlideUrlLoader(ModelCache<GlideUrl, GlideUrl> modelCache) {
this.modelCache = modelCache;
}
public BaseGlideUrlLoader(Context context, ModelCache<T, GlideUrl> modelCache) {
this(Glide.buildModelLoader(GlideUrl.class, InputStream.class, context), modelCache);
}
public BaseGlideUrlLoader(ModelLoader<GlideUrl, InputStream> concreteLoader, ModelCache<T, GlideUrl> modelCache) {
this.concreteLoader = concreteLoader;
this.modelCache = modelCache;
}
public ProgressModelLoader(ModelCache<String, String> modelCache) {
this(modelCache, null);
}
public ProgressModelLoader(ModelCache<String, String> modelCache, Handler handler) {
this.modelCache = modelCache;
this.handler = handler;
}
public ProgressModelLoader(ModelCache<String, String> modelCache) {
this(modelCache, null);
}
public ProgressModelLoader(ModelCache<String, String> modelCache, Handler handler) {
this.modelCache = modelCache;
this.handler = handler;
}