我刚刚查看了分页库,发现BoundaryCallback有三个方法。对于名为onItemAtFrontLoaded()的方法之一,文档说
Called when the item at the front of the PagedList has been loaded, and access has occurred within prefetchDistance of it.
我不太确定何时调用此方法,有人可以给我一个详细的例子吗?
我刚刚查看了分页库,发现BoundaryCallback有三个方法。对于名为onItemAtFrontLoaded()的方法之一,文档说
Called when the item at the front of the PagedList has been loaded, and access has occurred within prefetchDistance of it.
我不太确定何时调用此方法,有人可以给我一个详细的例子吗?