Skip to content

Commit

Permalink
Fix refresh KDoc (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhuizinga authored May 19, 2023
1 parent 5af2c81 commit a183c4e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.os.Handler
import androidx.paging.CombinedLoadStates
import androidx.paging.ItemSnapshotList
import androidx.paging.LoadState
import androidx.paging.LoadType
import androidx.paging.LoadType.REFRESH
import androidx.paging.PagingData
import androidx.paging.PagingSource
Expand Down Expand Up @@ -131,8 +130,9 @@ abstract class PagingDataEpoxyController<T : Any>(
*
* [refresh] triggers the creation of a new [PagingData] with a new instance of [PagingSource]
* to represent an updated snapshot of the backing dataset. If a [RemoteMediator] is set,
* calling [refresh] will also trigger a call to [RemoteMediator.load] with [LoadType] [REFRESH]
* to allow [RemoteMediator] to check for updates to the dataset backing [PagingSource].
* calling [refresh] will also trigger a call to [RemoteMediator.load] with
* [LoadType.REFRESH][REFRESH] to allow [RemoteMediator] to check for updates to the dataset
* backing [PagingSource].
*/
fun refresh() {
modelCache.refresh()
Expand Down

0 comments on commit a183c4e

Please sign in to comment.