Search code examples
javadropboxdropbox-api

Pagination with Dropbox


I have to implement a pageable grid with listed Dropbox files and I need these two functions: - offset - limit

I know I can use ListFolderGetLatestCursorBuilder for setting the limit but how can I achieve offset?


Solution

  • The Dropbox API ListFolder functionality doesn't offer a way to request a specific offset in the results. You should use listFolderContinue to call repeatedly as necessary to get all of the results to match the server state. Be sure to review the listFolder documentation to see how to process the results in order to get an accurate representation.