PreloadSizeProvider

interface PreloadSizeProvider<T>

An implementation of PreloadSizeProvider should provide the size of the view in the list where the resources will be displayed.

Parameters

<T>

The type of the model the size should be provided for.

Functions

Link copied to clipboard
abstract fun getPreloadSize(    item: T,     adapterPosition: Int,     perItemPosition: Int): Array<Int>
Returns the size of the view in the list where the resources will be displayed in pixels in the format [x, y], or null if no size is currently available.

Inheritors

Link copied to clipboard
Link copied to clipboard