I am looking to modify the number of items that is displayed in my recyclerviewer on the event that the last item of the current itemcount is viewed..
var mainadapt = MainAdapter()
Timeline.adapter = mainadapt
fun OnLastItemReached(){
Timeline.adapter.itemCount += 10
}
The code above is incorrect since the method ".itemcount" isn't a class variable so it can't just be modified at will. But it is the logic that I am trying to showcase, Basically loading 10 more items every time the last items is viewed.