# PositionalDataSource.LoadInitialParams

Artifact: [androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/PositionalDataSource.jvmAndAndroid.kt+class:androidx.paging.PositionalDataSource.LoadInitialParams) Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- android

  ```
  open class PositionalDataSource.LoadInitialParams
  ```

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

Holder object for inputs to `https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource#loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams)`.

## Summary

| ### Public constructors |
|---|---|
| `[LoadInitialParams](https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#LoadInitialParams(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Boolean))( requestedStartPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, requestedLoadSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, pageSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, placeholdersEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** PositionalDataSource is deprecated and has been replaced by PagingSource | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#pageSize()` **This property is deprecated.** PositionalDataSource is deprecated and has been replaced by PagingSource | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#placeholdersEnabled()` **This property is deprecated.** PositionalDataSource is deprecated and has been replaced by PagingSource | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#requestedLoadSize()` **This property is deprecated.** PositionalDataSource is deprecated and has been replaced by PagingSource | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#requestedStartPosition()` **This property is deprecated.** PositionalDataSource is deprecated and has been replaced by PagingSource | android |

## Public constructors

### LoadInitialParams

android Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
[LoadInitialParams](https://developer.android.com/reference/kotlin/androidx/paging/PositionalDataSource.LoadInitialParams#LoadInitialParams(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Boolean))(
    requestedStartPosition: Int,
    requestedLoadSize: Int,
    pageSize: Int,
    placeholdersEnabled: Boolean
)
```

> [!CAUTION]
> **This function is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

## Public properties

### pageSize

android Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
val pageSize: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

Defines page size acceptable for return values.

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

### placeholdersEnabled

android Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
val placeholdersEnabled: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

### requestedLoadSize

android Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
val requestedLoadSize: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

Requested number of items to load.

Note that this may be larger than available data.

### requestedStartPosition

android Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0) Deprecated in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
val requestedStartPosition: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> PositionalDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Int, T>
> ```

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.