ExperimentalRequestListener
Content copied to clipboard
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
Content copied to clipboard
Called when an exception occurs during a load, immediately before onLoadFailed.
Link copied to clipboard
Link copied to clipboard
abstract fun onResourceReady( resource: R, model: Any, target: Target<R>, dataSource: DataSource, isFirstResource: Boolean): Boolean
Content copied to clipboard
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
Content copied to clipboard
Identical to onResourceReady except that
isAlternateCacheKey
is provided.