Java Code Examples for com.bumptech.glide.load.model.GenericLoaderFactory#buildModelLoader()

The following examples show how to use com.bumptech.glide.load.model.GenericLoaderFactory#buildModelLoader() . 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: 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 2
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 3
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 4
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));
}
 
Example 5
Source File: StreamUriLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<Uri, InputStream> build(Context context, GenericLoaderFactory factories) {
    return new StreamUriLoader(context, factories.buildModelLoader(GlideUrl.class, InputStream.class));
}
 
Example 6
Source File: FileDescriptorFileLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<File, ParcelFileDescriptor> build(Context context, GenericLoaderFactory factories) {
    return new FileDescriptorFileLoader(factories.buildModelLoader(Uri.class, ParcelFileDescriptor.class));
}
 
Example 7
Source File: FileDescriptorStringLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<String, ParcelFileDescriptor> build(Context context, GenericLoaderFactory factories) {
    return new FileDescriptorStringLoader(factories.buildModelLoader(Uri.class, ParcelFileDescriptor.class));
}
 
Example 8
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 9
Source File: FileDescriptorResourceLoader.java    From giffun with Apache License 2.0 4 votes vote down vote up
@Override
public ModelLoader<Integer, ParcelFileDescriptor> build(Context context, GenericLoaderFactory factories) {
    return new FileDescriptorResourceLoader(context, factories.buildModelLoader(Uri.class,
            ParcelFileDescriptor.class));
}
 
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: 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));
}