epoxy-adapter / com.airbnb.epoxy.preload / EpoxyModelPreloader / buildViewMetadata

buildViewMetadata

abstract fun buildViewMetadata(view: View): U

Provide optional metadata about a view. This can be used in EpoxyModelPreloader.buildRequest

A preload request works best if it exactly matches the actual request (in order to match cache keys exactly) Things such as request transformations, thumbnails, or crop type can affect the cache key. If your preloadable view is configurable you can capture those options via this metadata.