epoxy-adapter / com.airbnb.epoxy.preload / ViewData

ViewData

class ViewData<out U : ViewMetadata?>

Data about an image view to be preloaded. This data is used to construct a Glide image request.

Parameters

metadata - Any custom, additional data that the EpoxyModelPreloader chooses to provide that may be necessary to create the image request.

Constructors

<init>

ViewData(viewId: Int, width: Int, height: Int, metadata: U)

Data about an image view to be preloaded. This data is used to construct a Glide image request.

Properties

height

val height: Int

metadata

val metadata: U

Any custom, additional data that the EpoxyModelPreloader chooses to provide that may be necessary to create the image request.

viewId

val viewId: Int

width

val width: Int