blob: 8dc51a199426c6d53273e5486ffd3d3b51b10290 [file] [log] [blame]
<html devsite="true">
<head>
<title>ContiguousPagedList</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>ContiguousPagedList</h1>
{% setvar page_path %}androidx/paging/ContiguousPagedList.html{% endsetvar %}
{% setvar can_switch %}1{% endsetvar %}
{% include "reference/_java_switcher2.md" %}
<p>
<pre>public class ContiguousPagedList extends <a href="/reference/androidx/paging/PagedList.html">PagedList</a></pre>
</p>
<div class="devsite-table-wrapper">
<table class="jd-inheritance-table">
<tbody>
<tr>
<td colspan="3"><a href="/reference/java/lang/Object.html">Object</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="2"><a href="/reference/androidx/paging/PagedList.html">PagedList</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="1"><a href="/reference/androidx/paging/ContiguousPagedList.html">ContiguousPagedList</a></td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper"><devsite-expandable><span class="expand-control jd-sumtable-subclasses">Known direct subclasses
<div class="showalways" id="subclasses-direct"><a href="/reference/androidx/paging/InitialPagedList.html">InitialPagedList</a></div>
</span>
<div id="subclasses-direct-summary">
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/androidx/paging/InitialPagedList.html">InitialPagedList</a></code></td>
<td width="100%">
<p>InitialPagedList is an empty placeholder that's sent at the front of a stream of <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</devsite-expandable> </div>
<hr>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2"><h3>Public fields</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>final <a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#config()">config</a></code></div>
<p>Return the Config used to construct this PagedList.</p>
</td>
</tr>
<tr>
<td><code>final <a href="/reference/androidx/paging/DataSource.html">DataSource</a>&lt;?,&nbsp;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#dataSource()">dataSource</a></code></div>
<p><strong>This field is deprecated.</strong> DataSource is deprecated and has been replaced by PagingSource.</p>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#isDetached()">isDetached</a></code></div>
<p>True if the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> has detached the <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> it was loading from, and will no longer load new data.</p>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#isImmutable()">isImmutable</a></code></div>
<p>Returns whether the list is immutable.</p>
</td>
</tr>
<tr>
<td><code>K</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#lastKey()">lastKey</a></code></div>
<p>Return the key for the position passed most recently to <code><a href="/reference/androidx/paging/ContiguousPagedList.html#loadAround(kotlin.Int)">loadAround</a></code>.</p>
</td>
</tr>
<tr>
<td><code>final int</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#loadedCount()">loadedCount</a></code></div>
<p>Returns the number of items loaded in the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code>final int</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#modCount()">modCount</a></code></div>
</td>
</tr>
<tr>
<td><code>final <a href="/reference/androidx/paging/PagingSource.html">PagingSource</a>&lt;K,&nbsp;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#pagingSource()">pagingSource</a></code></div>
<p>The <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> that provides data to this <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code>final int</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#positionOffset()">positionOffset</a></code></div>
<p>Position offset of the data in the list.</p>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#size()">size</a></code></div>
<p>Size of the list, including any placeholders (not-yet-loaded null padding).</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#ContiguousPagedList(androidx.paging.PagingSource,,,,androidx.paging.PagedList.BoundaryCallback,androidx.paging.PagedList.Config,androidx.paging.PagingSource.LoadResult.Page,kotlin.Any)">ContiguousPagedList</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagingSource.html">PagingSource</a>&lt;K,&nbsp;V&gt;&nbsp;pagingSource,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;coroutineScope,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;notifyDispatcher,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;backgroundDispatcher,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="/reference/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;V&gt;&nbsp;boundaryCallback,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a>&nbsp;config,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagingSource.LoadResult.Page.html">PagingSource.LoadResult.Page</a>&lt;K,&nbsp;V&gt;&nbsp;initialPage,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;K&nbsp;initialLastKey<br>)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2"><h3>Public methods</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#detach()">detach</a>()</code></div>
<p>Detach the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> from its <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code>, and attempt to load no more data.</p>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#dispatchCurrentLoadState(kotlin.Function2)">dispatchCurrentLoadState</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/kotlin/Function2.html">Function2</a>&lt;<a href="/reference/androidx/paging/LoadType.html">LoadType</a>,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>,&nbsp;<a href="/reference/kotlin/Unit.html">Unit</a>&gt;&nbsp;callback<br>)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#loadAroundInternal(kotlin.Int)">loadAroundInternal</a>(int&nbsp;index)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onInitialized(kotlin.Int)">onInitialized</a>(int&nbsp;count)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onPageAppended(kotlin.Int,kotlin.Int,kotlin.Int)">onPageAppended</a>(int&nbsp;endPosition,&nbsp;int&nbsp;changed,&nbsp;int&nbsp;added)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onPagePrepended(kotlin.Int,kotlin.Int,kotlin.Int)">onPagePrepended</a>(int&nbsp;leadingNulls,&nbsp;int&nbsp;changed,&nbsp;int&nbsp;added)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onPageResult(androidx.paging.LoadType,androidx.paging.PagingSource.LoadResult.Page)">onPageResult</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;type,&nbsp;<a href="/reference/androidx/paging/PagingSource.LoadResult.Page.html">PagingSource.LoadResult.Page</a>&lt;?,&nbsp;V&gt;&nbsp;page)</code></div>
<p>Given a page result, apply or drop it, and return whether more loading is needed.</p>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onPagesRemoved(kotlin.Int,kotlin.Int)">onPagesRemoved</a>(int&nbsp;startOfDrops,&nbsp;int&nbsp;count)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onPagesSwappedToPlaceholder(kotlin.Int,kotlin.Int)">onPagesSwappedToPlaceholder</a>(int&nbsp;startOfDrops,&nbsp;int&nbsp;count)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#onStateChanged(androidx.paging.LoadType,androidx.paging.LoadState)">onStateChanged</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;type,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>&nbsp;state)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#retry()">retry</a>()</code></div>
<p>Retry any errors associated with this <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/ContiguousPagedList.html#setInitialLoadState(androidx.paging.LoadType,androidx.paging.LoadState)">setInitialLoadState</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;loadType,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>&nbsp;loadState)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="2"><h3>Inherited methods</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/java/util/AbstractList.html">AbstractList</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#add(kotlin.Any)">add</a>(V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#add(kotlin.Int,kotlin.Any)">add</a>(int&nbsp;index,&nbsp;V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#addAll(kotlin.Int,kotlin.collections.Collection)">addAll</a>(int&nbsp;index,&nbsp;<a href="/reference/kotlin/collections/Collection.html">Collection</a>&lt;V&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#clear()">clear</a>()</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#equals(kotlin.Any)">equals</a>(@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="/reference/kotlin/Any.html">Any</a>&nbsp;other)</code></div>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#hashCode()">hashCode</a>()</code></div>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#indexOf(kotlin.Any)">indexOf</a>(V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/collections/MutableIterator.html">MutableIterator</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#iterator()">iterator</a>()</code></div>
</td>
</tr>
<tr>
<td><code>int</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#lastIndexOf(kotlin.Any)">lastIndexOf</a>(V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/collections/MutableListIterator.html">MutableListIterator</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#listIterator()">listIterator</a>()</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/collections/MutableListIterator.html">MutableListIterator</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#listIterator(kotlin.Int)">listIterator</a>(int&nbsp;index)</code></div>
</td>
</tr>
<tr>
<td><code>V</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#removeAt(kotlin.Int)">removeAt</a>(int&nbsp;p0)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#removeRange(kotlin.Int,kotlin.Int)">removeRange</a>(int&nbsp;p0,&nbsp;int&nbsp;p1)</code></div>
</td>
</tr>
<tr>
<td><code>V</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#set(kotlin.Int,kotlin.Any)">set</a>(int&nbsp;index,&nbsp;V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/collections/MutableList.html">MutableList</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractList.html#subList(kotlin.Int,kotlin.Int)">subList</a>(int&nbsp;fromIndex,&nbsp;int&nbsp;toIndex)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/java/util/AbstractCollection.html">AbstractCollection</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#addAll(kotlin.collections.Collection)">addAll</a>(<a href="/reference/kotlin/collections/Collection.html">Collection</a>&lt;V&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#contains(kotlin.Any)">contains</a>(V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#containsAll(kotlin.collections.Collection)">containsAll</a>(<a href="/reference/kotlin/collections/Collection.html">Collection</a>&lt;V&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#isEmpty()">isEmpty</a>()</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#remove(kotlin.Any)">remove</a>(V&nbsp;element)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#removeAll(kotlin.collections.Collection)">removeAll</a>(<a href="/reference/kotlin/collections/Collection.html">Collection</a>&lt;V&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#retainAll(kotlin.collections.Collection)">retainAll</a>(<a href="/reference/kotlin/collections/Collection.html">Collection</a>&lt;V&gt;&nbsp;elements)</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/Array.html">Array</a>&lt;<a href="/reference/kotlin/Any.html">Any</a>&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#toArray()">toArray</a>()</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/Array.html">Array</a>&lt;T&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#toArray(kotlin.Array)">toArray</a>(<a href="/reference/kotlin/Array.html">Array</a>&lt;T&gt;&nbsp;p0)</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/String.html">String</a></code></td>
<td width="100%">
<div><code><a href="/reference/java/util/AbstractCollection.html#toString()">toString</a>()</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/androidx/paging/PagedList.html">PagedList</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><span><del><a href="/reference/androidx/paging/PagedList.html#addWeakCallback(kotlin.collections.List,androidx.paging.PagedList.Callback)">addWeakCallback</a></del></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="/reference/kotlin/collections/List.html">List</a>&lt;V&gt;&nbsp;previousSnapshot,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagedList.Callback.html">PagedList.Callback</a>&nbsp;callback<br>)</code></div>
<p><strong>This method is deprecated.</strong> Dispatching a diff since snapshot created is behavior that can be instead tracked by attaching a Callback to the PagedList that is mutating, and tracking changes since calling PagedList.snapshot().</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#addWeakCallback(androidx.paging.PagedList.Callback)">addWeakCallback</a>(<a href="/reference/androidx/paging/PagedList.Callback.html">PagedList.Callback</a>&nbsp;callback)</code></div>
<p>Adds a callback.</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#addWeakLoadStateListener(kotlin.Function2)">addWeakLoadStateListener</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/kotlin/Function2.html">Function2</a>&lt;<a href="/reference/androidx/paging/LoadType.html">LoadType</a>,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>,&nbsp;<a href="/reference/kotlin/Unit.html">Unit</a>&gt;&nbsp;listener<br>)</code></div>
<p>Add a listener to observe the loading state of the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</td>
</tr>
<tr>
<td><code>V</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#get(kotlin.Int)">get</a>(int&nbsp;index)</code></div>
<p>Get the item in the list of loaded items at the provided index.</p>
</td>
</tr>
<tr>
<td><code>final <a href="/reference/androidx/paging/NullPaddedList.html">NullPaddedList</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#getNullPaddedList()">getNullPaddedList</a>()</code></div>
</td>
</tr>
<tr>
<td><code>final int</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#lastLoad()">lastLoad</a>()</code></div>
<p>Last access location in list.</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#loadAround(kotlin.Int)">loadAround</a>(int&nbsp;index)</code></div>
<p>Load adjacent items to passed index.</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#notifyChanged(kotlin.Int,kotlin.Int)">notifyChanged</a>(int&nbsp;position,&nbsp;int&nbsp;count)</code></div>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#notifyRemoved(kotlin.Int,kotlin.Int)">notifyRemoved</a>(int&nbsp;position,&nbsp;int&nbsp;count)</code></div>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#removeWeakCallback(androidx.paging.PagedList.Callback)">removeWeakCallback</a>(<a href="/reference/androidx/paging/PagedList.Callback.html">PagedList.Callback</a>&nbsp;callback)</code></div>
<p>Removes a previously added callback.</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#removeWeakLoadStateListener(kotlin.Function2)">removeWeakLoadStateListener</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/kotlin/Function2.html">Function2</a>&lt;<a href="/reference/androidx/paging/LoadType.html">LoadType</a>,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>,&nbsp;<a href="/reference/kotlin/Unit.html">Unit</a>&gt;&nbsp;listener<br>)</code></div>
<p>Remove a previously registered load state listener.</p>
</td>
</tr>
<tr>
<td><code>final void</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#setRetryCallback(java.lang.Runnable)">setRetryCallback</a>(@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="/reference/java/lang/Runnable.html">Runnable</a>&nbsp;refreshRetryCallback)</code></div>
</td>
</tr>
<tr>
<td><code>final <a href="/reference/kotlin/collections/List.html">List</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/androidx/paging/PagedList.html#snapshot()">snapshot</a>()</code></div>
<p>Returns an immutable snapshot of the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> in its current state.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/collections/Iterable.html">Iterable</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/Iterable.html#forEach(java.util.function.Consumer)">forEach</a>(<a href="/reference/java/util/function/Consumer.html">Consumer</a>&lt;V&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/collections/Collection.html">Collection</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code><a href="/reference/java/util/stream/Stream.html">Stream</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/Collection.html#parallelStream()">parallelStream</a>()</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/java/util/Spliterator.html">Spliterator</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/Collection.html#spliterator()">spliterator</a>()</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/java/util/stream/Stream.html">Stream</a>&lt;V&gt;</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/Collection.html#stream()">stream</a>()</code></div>
</td>
</tr>
<tr>
<td><code><a href="/reference/kotlin/Array.html">Array</a>&lt;T&gt;</code></td>
<td width="100%">
<div><code><span><del><a href="/reference/kotlin/collections/Collection.html#toArray(java.util.function.IntFunction)">toArray</a></del></span>(<a href="/reference/java/util/function/IntFunction.html">IntFunction</a>&lt;<a href="/reference/kotlin/Array.html">Array</a>&lt;T&gt;&gt;&nbsp;p0)</code></div>
<p><strong>This method is deprecated.</strong> This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/collections/MutableCollection.html">MutableCollection</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/MutableCollection.html#removeIf(java.util.function.Predicate)">removeIf</a>(<a href="/reference/java/util/function/Predicate.html">Predicate</a>&lt;V&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/collections/MutableList.html">MutableList</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/MutableList.html#replaceAll(java.util.function.UnaryOperator)">replaceAll</a>(<a href="/reference/java/util/function/UnaryOperator.html">UnaryOperator</a>&lt;V&gt;&nbsp;p0)</code></div>
</td>
</tr>
<tr>
<td><code>void</code></td>
<td width="100%">
<div><code><a href="/reference/kotlin/collections/MutableList.html#sort(java.util.Comparator)">sort</a>(<a href="/reference/java/util/Comparator.html">Comparator</a>&lt;V&gt;&nbsp;p0)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<h2>Public fields</h2>
<div><a name="getConfig()"></a><a name="setConfig()"></a><a name="getConfig--"></a><a name="setConfig--"></a>
<h3 class="api-name" id="config()">config</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a>&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#config()">config</a></pre>
<p>Return the Config used to construct this PagedList.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Returns</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td>
<td width="100%">
<p>the Config of this PagedList</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getDataSource()"></a><a name="setDataSource()"></a><a name="getDataSource--"></a><a name="setDataSource--"></a>
<h3 class="api-name" id="dataSource()">dataSource</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="/reference/androidx/paging/DataSource.html">DataSource</a>&lt;?,&nbsp;V&gt;&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#dataSource()">dataSource</a></pre>
<aside class="caution"><strong>This field is deprecated.</strong><br>DataSource is deprecated and has been replaced by PagingSource. PagedList offers indirect ways of controlling fetch ('loadAround()', 'retry()') so that you should not need to access the DataSource/PagingSource.</aside>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Throws</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>java.lang.IllegalStateException</code></td>
<td width="100%">
<p>if this <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> was instantiated without a wrapping a backing <code><a href="/reference/androidx/paging/DataSource.html">DataSource</a></code></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getIsDetached()"></a><a name="setIsDetached()"></a><a name="getIsDetached--"></a><a name="setIsDetached--"></a>
<h3 class="api-name" id="isDetached()">isDetached</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#isDetached()">isDetached</a></pre>
<p>True if the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> has detached the <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> it was loading from, and will no longer load new data.</p>
<p>A detached list is <code><a href="/reference/androidx/paging/ContiguousPagedList.html#isImmutable()">immutable</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Returns</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<p><code>true</code> if the data source is detached.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getIsImmutable()"></a><a name="setIsImmutable()"></a><a name="getIsImmutable--"></a><a name="setIsImmutable--"></a>
<h3 class="api-name" id="isImmutable()">isImmutable</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#isImmutable()">isImmutable</a></pre>
<p>Returns whether the list is immutable.</p>
<p>Immutable lists may not become mutable again, and may safely be accessed from any thread.</p>
<p>In the future, this method may return true when a PagedList has completed loading from its <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code>. Currently, it is equivalent to <code><a href="/reference/androidx/paging/PagedList.html#isDetached()">isDetached</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Returns</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>boolean</code></td>
<td width="100%">
<p><code>true</code> if the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> is immutable.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getLastKey()"></a><a name="setLastKey()"></a><a name="getLastKey--"></a><a name="setLastKey--"></a>
<h3 class="api-name" id="lastKey()">lastKey</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a><br>public&nbsp;K&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#lastKey()">lastKey</a></pre>
<p>Return the key for the position passed most recently to <code><a href="/reference/androidx/paging/ContiguousPagedList.html#loadAround(kotlin.Int)">loadAround</a></code>.</p>
<p>When a PagedList is invalidated, you can pass the key returned by this function to initialize the next PagedList. This ensures (depending on load times) that the next PagedList that arrives will have data that overlaps. If you use androidx.paging.LivePagedListBuilder, it will do this for you.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Returns</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>K</code></td>
<td width="100%">
<p>Key of position most recently passed to <code><a href="/reference/androidx/paging/ContiguousPagedList.html#loadAround(kotlin.Int)">loadAround</a></code>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getLoadedCount()"></a><a name="setLoadedCount()"></a><a name="getLoadedCount--"></a><a name="setLoadedCount--"></a>
<h3 class="api-name" id="loadedCount()">loadedCount</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;int&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#loadedCount()">loadedCount</a></pre>
<p>Returns the number of items loaded in the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
<p>Unlike <code><a href="/reference/androidx/paging/PagedList.html#size()">size</a></code> this counts only loaded items, not placeholders.</p>
<p>If placeholders are <code><a href="/reference/androidx/paging/PagedList.Config.html#enablePlaceholders()">disabled</a></code>, this method is equivalent to <code><a href="/reference/androidx/paging/PagedList.html#size()">size</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">Returns</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>int</code></td>
<td width="100%">
<p>Number of items currently loaded, not counting placeholders.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/androidx/paging/PagedList.html#size()">size</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="getModCount()"></a><a name="setModCount()"></a><a name="getModCount--"></a><a name="setModCount--"></a>
<h3 class="api-name" id="modCount()">modCount</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;int&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#modCount()">modCount</a></pre>
</div>
<div><a name="getPagingSource()"></a><a name="setPagingSource()"></a><a name="getPagingSource--"></a><a name="setPagingSource--"></a>
<h3 class="api-name" id="pagingSource()">pagingSource</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="/reference/androidx/paging/PagingSource.html">PagingSource</a>&lt;K,&nbsp;V&gt;&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#pagingSource()">pagingSource</a></pre>
<p>The <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> that provides data to this <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
</div>
<div><a name="getPositionOffset()"></a><a name="setPositionOffset()"></a><a name="getPositionOffset--"></a><a name="setPositionOffset--"></a>
<h3 class="api-name" id="positionOffset()">positionOffset</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;int&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#positionOffset()">positionOffset</a></pre>
<p>Position offset of the data in the list.</p>
<p>If the PagingSource backing this PagedList is counted, the item returned from <code>get(i)</code> has a position in the original data set of <code>i + getPositionOffset()</code>.</p>
<p>If placeholders are enabled, this value is always <code>0</code>, since <code>get(i)</code> will return either the data in its original index, or null if it is not loaded.</p>
</div>
<div><a name="getSize()"></a><a name="setSize()"></a><a name="getSize--"></a><a name="setSize--"></a>
<h3 class="api-name" id="size()">size</h3>
<pre class="api-signature no-pretty-print">public&nbsp;int&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#size()">size</a></pre>
<p>Size of the list, including any placeholders (not-yet-loaded null padding).</p>
<p>To get the number of loaded items, not counting placeholders, use <code><a href="/reference/androidx/paging/PagedList.html#loadedCount()">loadedCount</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/androidx/paging/PagedList.html#loadedCount()">loadedCount</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2>Public constructors</h2>
<div><a name="ContiguousPagedList(androidx.paging.PagingSource, , , , androidx.paging.PagedList.BoundaryCallback, androidx.paging.PagedList.Config, androidx.paging.PagingSource.LoadResult.Page, kotlin.Any)"></a><a name="ContiguousPagedList-androidx.paging.PagingSource----androidx.paging.PagedList.BoundaryCallback-androidx.paging.PagedList.Config-androidx.paging.PagingSource.LoadResult.Page-kotlin.Any-"></a>
<h3 class="api-name" id="ContiguousPagedList(androidx.paging.PagingSource,,,,androidx.paging.PagedList.BoundaryCallback,androidx.paging.PagedList.Config,androidx.paging.PagingSource.LoadResult.Page,kotlin.Any)">ContiguousPagedList</h3>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#ContiguousPagedList(androidx.paging.PagingSource,,,,androidx.paging.PagedList.BoundaryCallback,androidx.paging.PagedList.Config,androidx.paging.PagingSource.LoadResult.Page,kotlin.Any)">ContiguousPagedList</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagingSource.html">PagingSource</a>&lt;K,&nbsp;V&gt;&nbsp;pagingSource,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;coroutineScope,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;notifyDispatcher,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;backgroundDispatcher,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="/reference/androidx/paging/PagedList.BoundaryCallback.html">PagedList.BoundaryCallback</a>&lt;V&gt;&nbsp;boundaryCallback,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a>&nbsp;config,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/androidx/paging/PagingSource.LoadResult.Page.html">PagingSource.LoadResult.Page</a>&lt;K,&nbsp;V&gt;&nbsp;initialPage,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;K&nbsp;initialLastKey<br>)</pre>
</div>
<h2>Public methods</h2>
<div><a name="detach--"></a>
<h3 class="api-name" id="detach()">detach</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#detach()">detach</a>()</pre>
<p>Detach the <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> from its <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code>, and attempt to load no more data.</p>
<p>This is called automatically when a <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> is observed to be invalid, which is a signal to stop loading. The <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code> will continue to present existing data, but will not initiate new loads.</p>
</div>
<div><a name="dispatchCurrentLoadState-kotlin.Function2-"></a>
<h3 class="api-name" id="dispatchCurrentLoadState(kotlin.Function2)">dispatchCurrentLoadState</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#dispatchCurrentLoadState(kotlin.Function2)">dispatchCurrentLoadState</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/reference/kotlin/Function2.html">Function2</a>&lt;<a href="/reference/androidx/paging/LoadType.html">LoadType</a>,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>,&nbsp;<a href="/reference/kotlin/Unit.html">Unit</a>&gt;&nbsp;callback<br>)</pre>
</div>
<div><a name="loadAroundInternal-kotlin.Int-"></a>
<h3 class="api-name" id="loadAroundInternal(kotlin.Int)">loadAroundInternal</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#loadAroundInternal(kotlin.Int)">loadAroundInternal</a>(int&nbsp;index)</pre>
</div>
<div><a name="onInitialized-kotlin.Int-"></a>
<h3 class="api-name" id="onInitialized(kotlin.Int)">onInitialized</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onInitialized(kotlin.Int)">onInitialized</a>(int&nbsp;count)</pre>
</div>
<div><a name="onPageAppended(kotlin.Int, kotlin.Int, kotlin.Int)"></a><a name="onPageAppended-kotlin.Int-kotlin.Int-kotlin.Int-"></a>
<h3 class="api-name" id="onPageAppended(kotlin.Int,kotlin.Int,kotlin.Int)">onPageAppended</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onPageAppended(kotlin.Int,kotlin.Int,kotlin.Int)">onPageAppended</a>(int&nbsp;endPosition,&nbsp;int&nbsp;changed,&nbsp;int&nbsp;added)</pre>
</div>
<div><a name="onPagePrepended(kotlin.Int, kotlin.Int, kotlin.Int)"></a><a name="onPagePrepended-kotlin.Int-kotlin.Int-kotlin.Int-"></a>
<h3 class="api-name" id="onPagePrepended(kotlin.Int,kotlin.Int,kotlin.Int)">onPagePrepended</h3>
<pre class="api-signature no-pretty-print">@<a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a><br>public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onPagePrepended(kotlin.Int,kotlin.Int,kotlin.Int)">onPagePrepended</a>(int&nbsp;leadingNulls,&nbsp;int&nbsp;changed,&nbsp;int&nbsp;added)</pre>
</div>
<div><a name="onPageResult(androidx.paging.LoadType, androidx.paging.PagingSource.LoadResult.Page)"></a><a name="onPageResult-androidx.paging.LoadType-androidx.paging.PagingSource.LoadResult.Page-"></a>
<h3 class="api-name" id="onPageResult(androidx.paging.LoadType,androidx.paging.PagingSource.LoadResult.Page)">onPageResult</h3>
<pre class="api-signature no-pretty-print">public&nbsp;boolean&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onPageResult(androidx.paging.LoadType,androidx.paging.PagingSource.LoadResult.Page)">onPageResult</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;type,&nbsp;<a href="/reference/androidx/paging/PagingSource.LoadResult.Page.html">PagingSource.LoadResult.Page</a>&lt;?,&nbsp;V&gt;&nbsp;page)</pre>
<p>Given a page result, apply or drop it, and return whether more loading is needed.</p>
</div>
<div><a name="onPagesRemoved(kotlin.Int, kotlin.Int)"></a><a name="onPagesRemoved-kotlin.Int-kotlin.Int-"></a>
<h3 class="api-name" id="onPagesRemoved(kotlin.Int,kotlin.Int)">onPagesRemoved</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onPagesRemoved(kotlin.Int,kotlin.Int)">onPagesRemoved</a>(int&nbsp;startOfDrops,&nbsp;int&nbsp;count)</pre>
</div>
<div><a name="onPagesSwappedToPlaceholder(kotlin.Int, kotlin.Int)"></a><a name="onPagesSwappedToPlaceholder-kotlin.Int-kotlin.Int-"></a>
<h3 class="api-name" id="onPagesSwappedToPlaceholder(kotlin.Int,kotlin.Int)">onPagesSwappedToPlaceholder</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onPagesSwappedToPlaceholder(kotlin.Int,kotlin.Int)">onPagesSwappedToPlaceholder</a>(int&nbsp;startOfDrops,&nbsp;int&nbsp;count)</pre>
</div>
<div><a name="onStateChanged(androidx.paging.LoadType, androidx.paging.LoadState)"></a><a name="onStateChanged-androidx.paging.LoadType-androidx.paging.LoadState-"></a>
<h3 class="api-name" id="onStateChanged(androidx.paging.LoadType,androidx.paging.LoadState)">onStateChanged</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#onStateChanged(androidx.paging.LoadType,androidx.paging.LoadState)">onStateChanged</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;type,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>&nbsp;state)</pre>
</div>
<div><a name="retry--"></a>
<h3 class="api-name" id="retry()">retry</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#retry()">retry</a>()</pre>
<p>Retry any errors associated with this <code><a href="/reference/androidx/paging/PagedList.html">PagedList</a></code>.</p>
<p>If for example a network <code><a href="/reference/androidx/paging/PagingSource.html">PagingSource</a></code> append timed out, calling this method will retry the failed append load.</p>
<p>You can observe loading state via <code><a href="/reference/androidx/paging/ContiguousPagedList.html#addWeakLoadStateListener(kotlin.Function2)">addWeakLoadStateListener</a></code>, though generally this is done through the <code><a href="/reference/androidx/paging/PagedListAdapter.html">PagedListAdapter</a></code> or <code><a href="/reference/androidx/paging/AsyncPagedListDiffer.html">AsyncPagedListDiffer</a></code>.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2">See also</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="/reference/androidx/paging/ContiguousPagedList.html#addWeakLoadStateListener(kotlin.Function2)">addWeakLoadStateListener</a></code></td>
<td width="100%"></td>
</tr>
<tr>
<td><code><a href="/reference/androidx/paging/ContiguousPagedList.html#removeWeakLoadStateListener(kotlin.Function2)">removeWeakLoadStateListener</a></code></td>
<td width="100%"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div><a name="setInitialLoadState(androidx.paging.LoadType, androidx.paging.LoadState)"></a><a name="setInitialLoadState-androidx.paging.LoadType-androidx.paging.LoadState-"></a>
<h3 class="api-name" id="setInitialLoadState(androidx.paging.LoadType,androidx.paging.LoadState)">setInitialLoadState</h3>
<pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<a href="/reference/androidx/paging/ContiguousPagedList.html#setInitialLoadState(androidx.paging.LoadType,androidx.paging.LoadState)">setInitialLoadState</a>(<a href="/reference/androidx/paging/LoadType.html">LoadType</a>&nbsp;loadType,&nbsp;<a href="/reference/androidx/paging/LoadState.html">LoadState</a>&nbsp;loadState)</pre>
</div>
</body>
</html>