# FastScrollConfiguration

Artifact: [androidx.pdf:pdf-compose](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/compose/PdfViewer.kt+class:androidx.pdf.compose.FastScrollConfiguration) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)


```
class FastScrollConfiguration
```

<br />

*** ** * ** ***

Value class describing visual customization to the fast scrolling affordance. Namely, the page indicator and visual thumb background images and end margins can be customized.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration#withDrawableAndDimensionIds(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` |   |
| `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration#withDrawableIdsAndDp(kotlin.Int,kotlin.Int,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` |   |

## Summary

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` | `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration#withDrawableAndDimensionIds(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( fastScrollPageIndicatorBackgroundDrawableRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fastScrollVerticalThumbDrawableRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fastScrollPageIndicatorMarginEndRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DimenRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fastScrollVerticalThumbMarginEndRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DimenRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Instantiates a `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` using `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` resource IDs to describe the backgrounds for the page indicator and vertical thumb of the fast scroller, and using dimension resource IDs to describe the end margin applied to the same elements. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` | `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration#withDrawableIdsAndDp(kotlin.Int,kotlin.Int,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)( fastScrollPageIndicatorBackgroundDrawableRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fastScrollVerticalThumbDrawableRes: @https://developer.android.com/reference/kotlin/androidx/annotation/DrawableRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fastScrollPageIndicatorMarginEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, fastScrollVerticalThumbMarginEnd: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp )` Instantiates a `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` using `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` resource IDs to describe the backgrounds for the page indicator and vertical thumb of the fast scroller, and using `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` values to describe the end margin applied to the same elements. |

## Public companion functions

### withDrawableAndDimensionIds

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun withDrawableAndDimensionIds(
    fastScrollPageIndicatorBackgroundDrawableRes: @DrawableRes Int = R.drawable.page_indicator_background,
    fastScrollVerticalThumbDrawableRes: @DrawableRes Int = R.drawable.fast_scroll_thumb_drawable,
    fastScrollPageIndicatorMarginEndRes: @DimenRes Int = R.dimen.page_indicator_right_margin,
    fastScrollVerticalThumbMarginEndRes: @DimenRes Int = R.dimen.scroll_thumb_margin_end
): FastScrollConfiguration
```

Instantiates a `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` using `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` resource IDs to describe the backgrounds for the page indicator and vertical thumb of the fast scroller, and using dimension resource IDs to describe the end margin applied to the same elements.

### withDrawableIdsAndDp

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun withDrawableIdsAndDp(
    fastScrollPageIndicatorBackgroundDrawableRes: @DrawableRes Int = R.drawable.page_indicator_background,
    fastScrollVerticalThumbDrawableRes: @DrawableRes Int = R.drawable.fast_scroll_thumb_drawable,
    fastScrollPageIndicatorMarginEnd: Dp = 42.dp,
    fastScrollVerticalThumbMarginEnd: Dp = 0.dp
): FastScrollConfiguration
```

Instantiates a `https://developer.android.com/reference/kotlin/androidx/pdf/compose/FastScrollConfiguration` using `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` resource IDs to describe the backgrounds for the page indicator and vertical thumb of the fast scroller, and using `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` values to describe the end margin applied to the same elements.