Class OkHttpUrlLoader
java.lang.Object
com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
- All Implemented Interfaces:
com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>
public class OkHttpUrlLoader
extends Object
implements com.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>
A simple model loader for fetching media over http/https using OkHttp.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.bumptech.glide.load.model.ModelLoader
com.bumptech.glide.load.model.ModelLoader.LoadData<Data extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.bumptech.glide.load.model.ModelLoader.LoadData<InputStream>buildLoadData(com.bumptech.glide.load.model.GlideUrl model, int width, int height, com.bumptech.glide.load.Options options) booleanhandles(com.bumptech.glide.load.model.GlideUrl url)
-
Constructor Details
-
OkHttpUrlLoader
public OkHttpUrlLoader(@NonNull okhttp3.Call.Factory client)
-
-
Method Details
-
handles
public boolean handles(@NonNull com.bumptech.glide.load.model.GlideUrl url) - Specified by:
handlesin interfacecom.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>
-
buildLoadData
public com.bumptech.glide.load.model.ModelLoader.LoadData<InputStream> buildLoadData(@NonNull com.bumptech.glide.load.model.GlideUrl model, int width, int height, @NonNull com.bumptech.glide.load.Options options) - Specified by:
buildLoadDatain interfacecom.bumptech.glide.load.model.ModelLoader<com.bumptech.glide.load.model.GlideUrl,InputStream>
-