maybePostUpdateViewportAndComputeRange

fun maybePostUpdateViewportAndComputeRange(firstVisibleIndex: Int = layoutInfo.findFirstVisibleItemPosition(), lastVisibleIndex: Int = layoutInfo.findLastVisibleItemPosition())

Attempts to update the viewport and compute the range of items that should be prepared. This method checks if the viewport needs updating and posts a runnable to handle the update. It also triggers computation of which items should enter or exit the preparation range.

Parameters

firstVisibleIndex

The index of the first visible item in the viewport

lastVisibleIndex

The index of the last visible item in the viewport