Custom

data class Custom(val callback: (IOException) -> Boolean) : LoadErrorFallbackConfig

A fallback config based on a custom implementation.

The custom callback receives the exception that caused the load error and determines if the error is eligible for a fallback to an alternative resource.

Constructors

Link copied to clipboard
constructor(callback: (IOException) -> Boolean)

Properties

Link copied to clipboard
@Transient
val callback: (IOException) -> Boolean