GenericViewTarget

An opinionated ViewTarget that simplifies updating the Drawable attached to a View and supports automatically starting and stopping animated Drawables.

If you need custom behaviour that this class doesn't support it's recommended to implement ViewTarget directly.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract override var drawable: Drawable?

The current Drawable attached to view.

Functions

Link copied to clipboard
open override fun onError(error: Image?)

Called if an error occurs while executing the request.

Link copied to clipboard
open override fun onStart(owner: LifecycleOwner)

open override fun onStart(placeholder: Image?)

Called when the request starts.

Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)
Link copied to clipboard
open override fun onSuccess(result: Image)

Called if the request completes successfully.