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 fun onError(error: Image?)
Link copied to clipboard
open override fun onStart(owner: LifecycleOwner)
open fun onStart(placeholder: Image?)
Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)
Link copied to clipboard
open fun onSuccess(result: Image)