FileLoader

open class FileLoader<Data> : ModelLoader<Model, Data>

A simple model loader for loading data from Files.

Parameters

<Data>

The type of data loaded from the given java.io.File ( or java.io.FileDescriptor etc).

Constructors

Link copied to clipboard
open fun FileLoader(fileOpener: FileLoader.FileOpener<Data>)

Types

Link copied to clipboard
open class Factory<Data> : ModelLoaderFactory<T, Y>
Base factory for loading data from files.
Link copied to clipboard
open class FileDescriptorFactory : FileLoader.Factory<Data>
Factory for loading ParcelFileDescriptors from Files.
Link copied to clipboard
interface FileOpener<Data>
Allows opening a specific type of data from a java.io.File.
Link copied to clipboard
open class StreamFactory : FileLoader.Factory<Data>
Factory for loading InputStreams from Files.

Functions

Link copied to clipboard
open fun buildLoadData(    model: File,     width: Int,     height: Int,     options: Options): ModelLoader.LoadData<Data>
Returns a com.bumptech.glide.load.model.ModelLoader.LoadData containing a required to decode the resource represented by this model, as well as a set of Keys that identify the data loaded by the com.bumptech.glide.load.data.DataFetcher as well as an optional list of alternate keys from which equivalent data can be loaded.
Link copied to clipboard
open fun handles(model: File): Boolean
Returns true if the given model is a of a recognized type that this loader can probably load.