ModelLoaderFactory

interface ModelLoaderFactory<T, Y>

An interface for creating a ModelLoader for a given model type.

The application android.content.Context can be passed in to the constructor of the factory when necessary. It's unsafe to retain android.app.Activitys in factories. The android.content.Context can be obtained from registerComponents in most cases.

Parameters

<T>

The type of the model the com.bumptech.glide.load.model.ModelLoaders built by this factory can handle

<Y>

The type of data the com.bumptech.glide.load.model.ModelLoaders built by this factory can load.

Functions

Link copied to clipboard
abstract fun build(multiFactory: MultiModelLoaderFactory): ModelLoader<T, Y>
Build a concrete ModelLoader for this model type.
Link copied to clipboard
abstract fun teardown()
A lifecycle method that will be called when this factory is about to replaced.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard