ViewData

class ViewData<out U : ViewMetadata?>(@IdRes() viewId: Int, @Px() width: Int, @Px() height: Int, metadata: U)

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

ViewData
Link copied to clipboard
fun <out U : ViewMetadata?> ViewData(@IdRes() viewId: Int, @Px() width: Int, @Px() height: Int, metadata: U)
Any custom, additional data that the EpoxyModelPreloader chooses to provide that may be necessary to create the image request.

Properties

height
Link copied to clipboard
val height: Int
metadata
Link copied to clipboard
val metadata: U
Any custom, additional data that the EpoxyModelPreloader chooses to provide that may be necessary to create the image request.
viewId
Link copied to clipboard
val viewId: Int
width
Link copied to clipboard
val width: Int