Event Listener
A listener for tracking the progress of an image request. This class is useful for measuring analytics, performance, or other metrics tracking.
See also
Types
Factory
Link copied to clipboard
fun interface Factory
Content copied to clipboard
A factory that creates new EventListener instances.
Functions
decode End
Link copied to clipboard
open fun decodeEnd(request: ImageRequest, decoder: Decoder, options: Options, result: DecodeResult)
Content copied to clipboard
Called after Decoder.decode.
decode Start
Link copied to clipboard
open fun decodeStart(request: ImageRequest, decoder: Decoder, options: Options)
Content copied to clipboard
Called before Decoder.decode.
fetch End
Link copied to clipboard
open fun fetchEnd(request: ImageRequest, fetcher: Fetcher<*>, options: Options, result: FetchResult)
Content copied to clipboard
Called after Fetcher.fetch.
fetch Start
Link copied to clipboard
open fun fetchStart(request: ImageRequest, fetcher: Fetcher<*>, options: Options)
Content copied to clipboard
Called before Fetcher.fetch.
map End
Link copied to clipboard
Called after Mapper.map.
map Start
Link copied to clipboard
Called before Mapper.map.
on Cancel
Link copied to clipboard
on Error
Link copied to clipboard
on Start
Link copied to clipboard
on Success
Link copied to clipboard
open override fun onSuccess(request: ImageRequest, metadata: ImageResult.Metadata)
Content copied to clipboard
resolve Size End
Link copied to clipboard
Called after SizeResolver.size.
resolve Size Start
Link copied to clipboard
Called before SizeResolver.size.
transform End
Link copied to clipboard
Called after any Transformations are applied.
transform Start
Link copied to clipboard
Called before any Transformations are applied.
transition End
Link copied to clipboard
Called after Transition.transition.
transition Start
Link copied to clipboard
Called before Transition.transition.