OptionalInterceptor

fun interface OptionalInterceptor

An Interceptor that can either:

  • Return an ImageResult so no subsequent interceptors are called.

  • Return null to delegate to the next OptionalInterceptor in the list.

  • Optionally, call Interceptor.Chain.proceed to call through to the ImageLoader's real interceptor chain. Typically, this will map, fetch, and decode the data using the image loader's real image engine.

Functions

Link copied to clipboard
abstract suspend fun intercept(chain: Interceptor.Chain): ImageResult?