EventListener

interface EventListener : ImageRequest.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

Companion
Link copied to clipboard
object Companion
Factory
Link copied to clipboard
fun fun interface Factory

Functions

decodeEnd
Link copied to clipboard
open fun decodeEnd(request: ImageRequest, decoder: Decoder, options: Options, result: DecodeResult?)
Called after Decoder.decode.
decodeStart
Link copied to clipboard
open fun decodeStart(request: ImageRequest, decoder: Decoder, options: Options)
Called before Decoder.decode.
fetchEnd
Link copied to clipboard
open fun fetchEnd(request: ImageRequest, fetcher: Fetcher, options: Options, result: FetchResult?)
Called after Fetcher.fetch.
fetchStart
Link copied to clipboard
open fun fetchStart(request: ImageRequest, fetcher: Fetcher, options: Options)
Called before Fetcher.fetch.
keyEnd
Link copied to clipboard
open fun keyEnd(request: ImageRequest, output: String?)
Called after Keyer.key.
keyStart
Link copied to clipboard
open fun keyStart(request: ImageRequest, input: Any)
Called before Keyer.key.
mapEnd
Link copied to clipboard
open fun mapEnd(request: ImageRequest, output: Any)
Called after Mapper.map.
mapStart
Link copied to clipboard
open fun mapStart(request: ImageRequest, input: Any)
Called before Mapper.map.
onCancel
Link copied to clipboard
open override fun onCancel(request: ImageRequest)
onError
Link copied to clipboard
open override fun onError(request: ImageRequest, result: ErrorResult)
onStart
Link copied to clipboard
open override fun onStart(request: ImageRequest)
onSuccess
Link copied to clipboard
open override fun onSuccess(request: ImageRequest, result: SuccessResult)
resolveSizeEnd
Link copied to clipboard
open fun resolveSizeEnd(request: ImageRequest, size: Size)
Called after SizeResolver.size.
resolveSizeStart
Link copied to clipboard
open fun resolveSizeStart(request: ImageRequest)
Called before SizeResolver.size.
transformEnd
Link copied to clipboard
open fun transformEnd(request: ImageRequest, output: Bitmap)
Called after any Transformations are applied.
transformStart
Link copied to clipboard
open fun transformStart(request: ImageRequest, input: Bitmap)
Called before any Transformations are applied.
transitionEnd
Link copied to clipboard
open fun transitionEnd(request: ImageRequest, transition: Transition)
Called after Transition.transition.
transitionStart
Link copied to clipboard
open fun transitionStart(request: ImageRequest, transition: Transition)
Called before Transition.transition.