# ItemKeyedDataSource.LoadInitialParams

Summary:[Fields](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#lfields)\|[Ctors](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#inhmethods)  

# ItemKeyedDataSource.LoadInitialParams

| The`android.arch`Architecture Components packages are no longer maintained. They have been superseded by the corresponding[androidx.\*](https://developer.android.com/jetpack/androidx/migrate)packages. See[androidx.paging.ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/androidx/paging/ItemKeyedDataSource.LoadInitialParams)instead.

`
public
static


class
ItemKeyedDataSource.LoadInitialParams
`  
`

extends Object


``


`

|---|------------------------------------------------------------------|
| java.lang.Object                                                    ||
| ↳ | android.arch.paging.ItemKeyedDataSource.LoadInitialParams\<Key\> |

<br />

*** ** * ** ***

Holder object for inputs to[loadInitial(LoadInitialParams, LoadInitialCallback)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource#loadInitial(android.arch.paging.ItemKeyedDataSource.LoadInitialParams<Key>, android.arch.paging.ItemKeyedDataSource.LoadInitialCallback<Value>)).

## Summary

|                                                                                                                                                                                                                   ### Fields                                                                                                                                                                                                                   ||
|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final boolean` | [placeholdersEnabled](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#placeholdersEnabled) Defines whether placeholders are enabled, and whether the total count passed to[onResult(List, int, int)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback#onResult(java.util.List<Value>, int, int))will be ignored. |
| ` public final Key`     | [requestedInitialKey](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#requestedInitialKey) Load items around this key, or at the beginning of the data set if`null`is passed.                                                                                                                                                                                       |
| ` public final int`     | [requestedLoadSize](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#requestedLoadSize) Requested number of items to load.                                                                                                                                                                                                                                           |

|                                                                                                                                  ### Public constructors                                                                                                                                  ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams#ItemKeyedDataSource.LoadInitialParams(Key, int, boolean))`(Key requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled) ` |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Fields

### placeholdersEnabled

```
boolean placeholdersEnabled
```

Defines whether placeholders are enabled, and whether the total count passed to[onResult(List, int, int)](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback#onResult(java.util.List<Value>, int, int))will be ignored.

<br />

### requestedInitialKey

```
Key requestedInitialKey
```

Load items around this key, or at the beginning of the data set if`null`is passed.

Note that this key is generally a hint, and may be ignored if you want to always load from the beginning.

<br />

### requestedLoadSize

```
int requestedLoadSize
```

Requested number of items to load.

Note that this may be larger than available data.

<br />

## Public constructors

### ItemKeyedDataSource.LoadInitialParams

```
ItemKeyedDataSource.LoadInitialParams (Key requestedInitialKey, 
                int requestedLoadSize, 
                boolean placeholdersEnabled)
```

<br />

<br />

|               Parameters                ||
|-----------------------|------------------|
| `requestedInitialKey` | `Key` <br />     |
| `requestedLoadSize`   | `int` <br />     |
| `placeholdersEnabled` | `boolean` <br /> |

-

  ## Interfaces

  - [DataSource.InvalidatedCallback](https://developer.android.com/reference/android/arch/paging/DataSource.InvalidatedCallback)
-

  ## Classes

  - [AsyncPagedListDiffer](https://developer.android.com/reference/android/arch/paging/AsyncPagedListDiffer)
  - [DataSource](https://developer.android.com/reference/android/arch/paging/DataSource)
  - [DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)
  - [ItemKeyedDataSource](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource)
  - [ItemKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadCallback)
  - [ItemKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback)
  - [ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams)
  - [ItemKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadParams)
  - [LivePagedListBuilder](https://developer.android.com/reference/android/arch/paging/LivePagedListBuilder)
  - [PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)
  - [PagedList.BoundaryCallback](https://developer.android.com/reference/android/arch/paging/PagedList.BoundaryCallback)
  - [PagedList.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Builder)
  - [PagedList.Callback](https://developer.android.com/reference/android/arch/paging/PagedList.Callback)
  - [PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config)
  - [PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder)
  - [PagedListAdapter](https://developer.android.com/reference/android/arch/paging/PagedListAdapter)
  - [PageKeyedDataSource](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource)
  - [PageKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadCallback)
  - [PageKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialCallback)
  - [PageKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialParams)
  - [PageKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadParams)
  - [PositionalDataSource](https://developer.android.com/reference/android/arch/paging/PositionalDataSource)
  - [PositionalDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialCallback)
  - [PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams)
  - [PositionalDataSource.LoadRangeCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeCallback)
  - [PositionalDataSource.LoadRangeParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeParams)
  - [RxPagedListBuilder](https://developer.android.com/reference/android/arch/paging/RxPagedListBuilder)