Package 

Interface ListPreloader.PreloadSizeProvider


  • 
    public interface ListPreloader.PreloadSizeProvider<T>
    
                        

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

    • Method Summary

      Modifier and Type Method Description
      abstract Array<int> getPreloadSize(@NonNull() T item, int adapterPosition, int perItemPosition) Returns the size of the view in the list where the resources will be displayed in pixels inthe format [x, y], or {@code null} if no size is currently available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPreloadSize

        @Nullable() abstract Array<int> getPreloadSize(@NonNull() T item, int adapterPosition, int perItemPosition)

        Returns the size of the view in the list where the resources will be displayed in pixels inthe format [x, y], or {@code null} if no size is currently available.

        Note - The dimensions returned here must precisely match those of the view in the list.

        If this method returns {@code null}, then no request will be started for the given item.

        Parameters:
        item - A model