Skip to content

Conversation

@florina-muntenescu
Copy link
Collaborator

The role of this PR is just to showcase the differences between the starting point of the codelab and the final one, with paging added.

@florina-muntenescu florina-muntenescu force-pushed the fm/network_paging branch 2 times, most recently from 4be5340 to 7a01b04 Compare February 26, 2020 16:41
) : PagingSource<Int, Repo>() {
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, Repo> {
val position = params.key ?: 0
val apiResponse = searchRepos(service, query, position, GithubRepository.NETWORK_PAGE_SIZE)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should sync with Dustin in the PagingWithNetworkSample to standardize as to whether we want to use suspend Response retrofit APIs, or the Response-less ones. I'm fine either way, but there is some value in consistency.

Copy link

@ChrisCraik ChrisCraik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple things I found while copying code into KDoc samples

@florina-muntenescu florina-muntenescu deleted the fm/network_paging branch March 18, 2020 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants