com.bumptech.glide.load.model.GenericLoaderFactory Java Examples

The following examples show how to use com.bumptech.glide.load.model.GenericLoaderFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArtistImageLoader.java    From Phonograph with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<ArtistImage, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new ArtistImageLoader(context);
}
 
Example #2
Source File: OkHttpUrlLoader.java    From AndroidModulePattern with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new OkHttpUrlLoader(client);
}
 
Example #3
Source File: VolleyUrlLoader.java    From RecyclerAdapterBase with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
	return new VolleyUrlLoader(requestQueue, requestFactory);
}
 
Example #4
Source File: CustomImageSizeModelFactory.java    From Android-Tech with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory genericLoaderFactory) {
    return new CustomImageSizeUrlLoader(context);
}
 
Example #5
Source File: VideoThumbnailLoader.java    From ChatMessagesAdapter-android with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override public ModelLoader<VideoThumbnail, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new VideoThumbnailLoader();
}
 
Example #6
Source File: GlideConfiguration.java    From Cirrus_depricated with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new SynoxHttpUrlLoader();
}
 
Example #7
Source File: GlideModule.java    From glide-support with The Unlicense 4 votes vote down vote up
@Override public StreamModelLoader<String> build(Context context, GenericLoaderFactory factories) {
	return new HeaderedLoader(context);
}
 
Example #8
Source File: CustomImageSizeModelFactory.java    From ImageLoadPK with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new CustomImageModelLoader(context);
}
 
Example #9
Source File: OkHttpUrlLoader.java    From AndroidBase with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
  return new OkHttpUrlLoader(client);
}
 
Example #10
Source File: SignModelLoader.java    From E-signature with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<Uri, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new SignModelLoader(context, factories.buildModelLoader(GlideUrl.class, InputStream.class));
}
 
Example #11
Source File: AudioFileCoverLoader.java    From Phonograph with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<AudioFileCover, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new AudioFileCoverLoader();
}
 
Example #12
Source File: ArtistImageLoader.java    From RetroMusicPlayer with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<ArtistImage, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new ArtistImageLoader(context, lastFMClient, okHttpFactory.build(context, factories));
}
 
Example #13
Source File: AVFileLoader.java    From mr-mantou-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<AVFile, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new AVFileLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class));
}
 
Example #14
Source File: DrawableStreamLoader.java    From materialize with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<AppInfo, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new DrawableStreamLoader();
}
 
Example #15
Source File: DecryptableStreamUriLoader.java    From Silence with GNU General Public License v3.0 4 votes vote down vote up
@Override
public StreamModelLoader<DecryptableUri> build(Context context, GenericLoaderFactory factories) {
  return new DecryptableStreamUriLoader(context);
}
 
Example #16
Source File: AttachmentStreamUriLoader.java    From Silence with GNU General Public License v3.0 4 votes vote down vote up
@Override
public StreamModelLoader<AttachmentModel> build(Context context, GenericLoaderFactory factories) {
  return new AttachmentStreamUriLoader(context);
}
 
Example #17
Source File: ContactPhotoUriLoader.java    From Silence with GNU General Public License v3.0 4 votes vote down vote up
@Override
public StreamModelLoader<ContactPhotoUri> build(Context context, GenericLoaderFactory factories) {
  return new ContactPhotoUriLoader(context);
}
 
Example #18
Source File: CustomImageSizeGlideModule.java    From android-tutorials-glide with MIT License 4 votes vote down vote up
@Override
public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new CustomImageSizeUrlLoader( context );
}
 
Example #19
Source File: CheckLocalGlideModule.java    From android-tutorials-glide with MIT License 4 votes vote down vote up
@Override
public ModelLoader<CustomImageSizeModel, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new CustomImageSizeUrlLoader( context );
}
 
Example #20
Source File: OkHttpUrlLoader.java    From android-tutorials-glide with MIT License 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new OkHttpUrlLoader(client);
}
 
Example #21
Source File: OkHttpUrlLoader.java    From MoeGallery with GNU General Public License v3.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context,
        GenericLoaderFactory factories) {
    return new OkHttpUrlLoader(client);
}
 
Example #22
Source File: OkHttpViewModelUrlLoader.java    From KinoCast with MIT License 4 votes vote down vote up
@Override
public ModelLoader<ViewModelGlideRequest, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new OkHttpViewModelUrlLoader(context, client);
}
 
Example #23
Source File: FileDescriptorUriLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<Uri, ParcelFileDescriptor> build(Context context, GenericLoaderFactory factories) {
    return new FileDescriptorUriLoader(context, factories.buildModelLoader(GlideUrl.class,
            ParcelFileDescriptor.class));
}
 
Example #24
Source File: Glide.java    From giffun with Apache License 2.0 4 votes vote down vote up
private GenericLoaderFactory getLoaderFactory() {
    return loaderFactory;
}
 
Example #25
Source File: HttpUrlGlideUrlLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new HttpUrlGlideUrlLoader(modelCache);
}
 
Example #26
Source File: StreamStringLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<String, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamStringLoader(factories.buildModelLoader(Uri.class, InputStream.class));
}
 
Example #27
Source File: StreamFileLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<File, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamFileLoader(factories.buildModelLoader(Uri.class, InputStream.class));
}
 
Example #28
Source File: StreamResourceLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<Integer, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamResourceLoader(context, factories.buildModelLoader(Uri.class, InputStream.class));
}
 
Example #29
Source File: StreamByteArrayLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<byte[], InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamByteArrayLoader();
}
 
Example #30
Source File: StreamUrlLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<URL, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamUrlLoader(factories.buildModelLoader(GlideUrl.class, InputStream.class));
}