# PageKeyedDataSource.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/PageKeyedDataSource.jvmAndAndroid.kt+class:androidx.paging.PageKeyedDataSource.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 PageKeyedDataSource.LoadInitialParams<Key : Any>
  ```

*** ** * ** ***

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

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

| Parameters |
|---|---|
| `<Key : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | Type of data used to query pages. |

## Summary

| ### Public constructors |
|---|---|
| `<Key : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> [LoadInitialParams](https://developer.android.com/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadInitialParams#LoadInitialParams(kotlin.Int,kotlin.Boolean))( requestedLoadSize: 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.** PageKeyedDataSource is deprecated and has been replaced by PagingSource | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadInitialParams#placeholdersEnabled()` **This property is deprecated.** PageKeyedDataSource 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/PageKeyedDataSource.LoadInitialParams#requestedLoadSize()` **This property is deprecated.** PageKeyedDataSource is deprecated and has been replaced by PagingSource | android |

## Public constructors

### LoadInitialParams

android

```
<Key : Any> [LoadInitialParams](https://developer.android.com/reference/kotlin/androidx/paging/PageKeyedDataSource.LoadInitialParams#LoadInitialParams(kotlin.Int,kotlin.Boolean))(
    requestedLoadSize: Int,
    placeholdersEnabled: Boolean
)
```

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

| Parameters |
|---|---|
| `<Key : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | Type of data used to query pages. |
| `requestedLoadSize: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Requested number of items to load. Note that this may be larger than available data. |
| `placeholdersEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |

## Public properties

### 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.**   
> PageKeyedDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Key, Value>
> ```

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.**   
> PageKeyedDataSource is deprecated and has been replaced by PagingSource, use this instead:
>
> ```kotlin
> PagingSource<Key, Value>
> ```

Requested number of items to load.

Note that this may be larger than available data.