> Documentation index: https://developer.android.com/reference/llms.txt

# PagingSource.LoadParams.Append

Artifact: [androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/paging/PagingSource.kt+class:androidx.paging.PagingSource.LoadParams.Append) Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging.md.txt#3.0.0)

*** ** * ** ***


```
public final class PagingSource.LoadParams.Append<Key extends Object> extends PagingSource.LoadParams<@NonNull Key>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.md.txt) |||
| ↳ | [androidx.paging.PagingSource.LoadParams](https://developer.android.com/reference/androidx/paging/PagingSource.LoadParams.md.txt)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull.md.txt) Key\> ||
|   | ↳ | [androidx.paging.PagingSource.LoadParams.Append](https://developer.android.com/reference/androidx/paging/PagingSource.LoadParams.Append.md.txt) |

*** ** * ** ***

Params to load a page of data from a `PagingSource` via `PagingSource.load` to be appended to the end of the list.

## Summary

| ### Public constructors |
|---|
| `<Key extends Object> Append( @NonNull Key key, int loadSize, boolean placeholdersEnabled )` |

| ### Public methods |
|---|---|
| `@NonNull Key` | `getKey()` Key for the page to be loaded. |

### Inherited methods

From [androidx.paging.PagingSource.LoadParams](https://developer.android.com/reference/androidx/paging/PagingSource.LoadParams.md.txt) `final int` `getLoadSize()`

Requested number of items to load.
`final boolean` `getPlaceholdersEnabled()`

From `PagingConfig.enablePlaceholders`, true if placeholders are enabled and the load request for this `LoadParams` should populate `LoadResult.Page.itemsBefore` and `LoadResult.Page.itemsAfter` if possible.

## Public constructors

### Append

```
public <Key extends Object> Append(
    @NonNull Key key,
    int loadSize,
    boolean placeholdersEnabled
)
```

| Parameters |
|---|---|
| `@NonNull Key key` | Key for the page to be loaded. `key` can be `null` only if this `LoadParams` is `Refresh`, and either no `initialKey` is provided to the `Pager` or `PagingSource.getRefreshKey` from the previous `PagingSource` returns `null`. The value of `key` is dependent on the type of `LoadParams`: - `Refresh` - On initial load, the nullable `initialKey` passed to the `Pager`. - On subsequent loads due to invalidation or refresh, the result of `PagingSource.getRefreshKey`. - `Prepend` - `LoadResult.Page.prevKey` of the loaded page at the front of the list. - `Append` - `LoadResult.Page.nextKey` of the loaded page at the end of the list. |

## Public methods

### getKey

```
public @NonNull Key getKey()
```

Key for the page to be loaded.

`key` can be `null` only if this `LoadParams` is `Refresh`, and either no `initialKey` is provided to the `Pager` or `PagingSource.getRefreshKey` from the previous `PagingSource` returns `null`.

The value of `key` is dependent on the type of `LoadParams`:

- `Refresh`

  - On initial load, the nullable `initialKey` passed to the `Pager`.

  - On subsequent loads due to invalidation or refresh, the result of `PagingSource.getRefreshKey`.

- `Prepend` - `LoadResult.Page.prevKey` of the loaded page at the front of the list.

- `Append` - `LoadResult.Page.nextKey` of the loaded page at the end of the list.