error

open fun error(drawable: Drawable): T

Sets a Drawable to display if a load fails.

Replaces any previous calls to this method or error

Return

This request builder.

Parameters

drawable

The drawable to display.


open fun error(resourceId: Int): T

Sets a resource to display if a load fails.

Replaces any previous calls to this method or error

Return

This request builder.

Parameters

resourceId

The id of the resource to use as a placeholder.