# PositionalDataSource.LoadInitialParams

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

# PositionalDataSource.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.PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/androidx/paging/PositionalDataSource.LoadInitialParams)instead.

`
public
static


class
PositionalDataSource.LoadInitialParams
`  
`

extends Object


``


`

|---|------------------------------------------------------------|
| java.lang.Object                                              ||
| ↳ | android.arch.paging.PositionalDataSource.LoadInitialParams |

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                  ### Fields                                                                                                                                                                                                                  ||
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final int`     | [pageSize](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams#pageSize) Defines page size acceptable for return values.                                                                                                                                                                                                                                             |
| ` public final boolean` | [placeholdersEnabled](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.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/PositionalDataSource.LoadInitialCallback#onResult(java.util.List<T>, int, int))will be ignored. |
| ` public final int`     | [requestedLoadSize](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams#requestedLoadSize) Requested number of items to load.                                                                                                                                                                                                                                        |
| ` public final int`     | [requestedStartPosition](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams#requestedStartPosition) Initial load position requested.                                                                                                                                                                                                                                |

|                                                                                                                                              ### Public constructors                                                                                                                                               ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams#PositionalDataSource.LoadInitialParams(int, int, int, boolean))`(int requestedStartPosition, int requestedLoadSize, int pageSize, 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

### pageSize

```
int pageSize
```

Defines page size acceptable for return values.

List of items passed to the callback must be an integer multiple of page size.

<br />

### 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/PositionalDataSource.LoadInitialCallback#onResult(java.util.List<T>, int, int))will be ignored.

<br />

### requestedLoadSize

```
int requestedLoadSize
```

Requested number of items to load.

Note that this may be larger than available data.

<br />

### requestedStartPosition

```
int requestedStartPosition
```

Initial load position requested.

Note that this may not be within the bounds of your data set, it may need to be adjusted before you execute your load.

<br />

## Public constructors

### PositionalDataSource.LoadInitialParams

```
PositionalDataSource.LoadInitialParams (int requestedStartPosition, 
                int requestedLoadSize, 
                int pageSize, 
                boolean placeholdersEnabled)
```

<br />

<br />

|                 Parameters                 ||
|--------------------------|------------------|
| `requestedStartPosition` | `int` <br />     |
| `requestedLoadSize`      | `int` <br />     |
| `pageSize`               | `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)