I followed the FirebaseUI doc about firestorepaging adapter, but now I intend to to reload "next page" using a button?
Can somebody give guidance how to proceed from here?
Query baseQuery = mItemsCollection.orderBy("value", Query.Direction.ASCENDING);
// This configuration comes from the Paging Support Library
// https://developer.android.com/reference/android/arch/paging/PagedList.Config.html
PagedList.Config config = new PagedList.Config.Builder()
.setEnablePlaceholders(false)
.setPrefetchDistance(10)
.setPageSize(20)
.build();
// The options for the adapter combine the paging configuration with query information
// and application-specific options for lifecycle, etc.
FirestorePagingOptions<Item> options = new FirestorePagingOptions.Builder<Item>()
.setLifecycleOwner(this)
.setQuery(baseQuery, config, Item.class)
.build();