ExperimentalRequestListener

abstract class ExperimentalRequestListener<ResourceT> : RequestListener<R>

An extension of RequestListener with additional parameters.

All equivalent methods are called at the relevant time by Glide. Implementations therefore should only implement one version of each method.

Deprecated

Not ready for public consumption, avoid using this class. It may be removed at any time.

Parameters

<ResourceT>

The type of resource that will be loaded for the request.

Functions

Link copied to clipboard
abstract fun onLoadFailed(    e: GlideException,     model: Any,     target: Target<R>,     isFirstResource: Boolean): Boolean
Called when an exception occurs during a load, immediately before onLoadFailed.
Link copied to clipboard
open fun onRequestStarted(model: Any)
Link copied to clipboard
abstract fun onResourceReady(    resource: R,     model: Any,     target: Target<R>,     dataSource: DataSource,     isFirstResource: Boolean): Boolean
Called when a load completes successfully, immediately before onResourceReady.
abstract fun onResourceReady(    resource: ResourceT,     model: Any,     target: Target<ResourceT>,     dataSource: DataSource,     isFirstResource: Boolean,     isAlternateCacheKey: Boolean): Boolean
Identical to onResourceReady except that isAlternateCacheKey is provided.