| <html devsite="true"> |
| <head> |
| <title>PagedListConfigKt</title> |
| {% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} |
| {% include "_shared/_reference-head-tags.html" %} |
| </head> |
| <body> |
| <h1>PagedListConfigKt</h1> |
| {% setvar page_path %}androidx/paging/PagedListConfigKt.html{% endsetvar %} |
| {% setvar can_switch %}1{% endsetvar %} |
| {% include "reference/_java_switcher2.md" %} |
| <p> |
| <pre>public final class PagedListConfigKt</pre> |
| </p> |
| <hr> |
| <h2>Summary</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="2"><h3>Public methods</h3></th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td><code>static final <a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a></code></td> |
| <td width="100%"> |
| <div><code><a href="/reference/androidx/paging/PagedListConfigKt.html#Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</a>(<br> int pageSize,<br> int prefetchDistance,<br> boolean enablePlaceholders,<br> int initialLoadSizeHint,<br> int maxSize<br>)</code></div> |
| <p>Constructs a <code><a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a></code>, convenience for <code><a href="/reference/androidx/paging/PagedList.Config.Builder.html">PagedList.Config.Builder</a></code>.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <h2>Public methods</h2> |
| <div><a name="Config(kotlin.Int, kotlin.Int, kotlin.Boolean, kotlin.Int, kotlin.Int)"></a><a name="Config-kotlin.Int-kotlin.Int-kotlin.Boolean-kotlin.Int-kotlin.Int-"></a> |
| <h3 class="api-name" id="Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</h3> |
| <pre class="api-signature no-pretty-print">public static final <a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a> <a href="/reference/androidx/paging/PagedListConfigKt.html#Config(kotlin.Int,kotlin.Int,kotlin.Boolean,kotlin.Int,kotlin.Int)">Config</a>(<br> int pageSize,<br> int prefetchDistance,<br> boolean enablePlaceholders,<br> int initialLoadSizeHint,<br> int maxSize<br>)</pre> |
| <p>Constructs a <code><a href="/reference/androidx/paging/PagedList.Config.html">PagedList.Config</a></code>, convenience for <code><a href="/reference/androidx/paging/PagedList.Config.Builder.html">PagedList.Config.Builder</a></code>.</p> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="2">Parameters</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td><code>pageSize</code></td> |
| <td width="100%"> |
| <p>Number of items loaded at once from the <code><a href="/reference/androidx/paging/DataSource.html">DataSource</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code>prefetchDistance</code></td> |
| <td width="100%"> |
| <p>Distance the PagedList should prefetch.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code>enablePlaceholders</code></td> |
| <td width="100%"> |
| <p>False if null placeholders should be disabled.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code>initialLoadSizeHint</code></td> |
| <td width="100%"> |
| <p>Number of items to load while initializing the PagedList.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code>maxSize</code></td> |
| <td width="100%"> |
| <p>Maximum number of items to keep in memory, or <code><a href="/reference/androidx/paging/PagedList.Config.Companion.html#MAX_SIZE_UNBOUNDED()">PagedList.Config.MAX_SIZE_UNBOUNDED</a></code> to disable page dropping.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| </body> |
| </html> |