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