-
- All Implemented Interfaces:
-
com.bumptech.glide.load.model.ModelLoaderFactory
public class OkHttpUrlLoader.Factory implements ModelLoaderFactory<GlideUrl, InputStream>
The default factory for OkHttpUrlLoaders.
-
-
Constructor Summary
Constructors Constructor Description OkHttpUrlLoader.Factory()Constructor for a new Factory that runs requests using a static singleton client. OkHttpUrlLoader.Factory(Call.Factory client)Constructor for a new Factory that runs requests using given client.
-
Method Summary
Modifier and Type Method Description ModelLoader<GlideUrl, InputStream>build(MultiModelLoaderFactory multiFactory)voidteardown()-
-
Constructor Detail
-
OkHttpUrlLoader.Factory
OkHttpUrlLoader.Factory()
Constructor for a new Factory that runs requests using a static singleton client.
-
OkHttpUrlLoader.Factory
OkHttpUrlLoader.Factory(Call.Factory client)
Constructor for a new Factory that runs requests using given client.- Parameters:
client- this is typically an instance of{@code OkHttpClient}.
-
-
Method Detail
-
build
@NonNull() ModelLoader<GlideUrl, InputStream> build(MultiModelLoaderFactory multiFactory)
-
teardown
void teardown()
-
-
-
-