---
title: "ScrollInfoProvider"
description: "An interface for providing scroll information for different scrollable containers, such lists.
Used for scrolling away, showing, hiding or scaling screen elements based on scrollable state.

[ScrollInfoProvider] can be used to create a ScrollAway modifier, typically applied to an object
that appears at the top of the screen to scroll it away vertically when a list is scrolled
upwards. The scrolled offset is typically calculated with reference to the position of an anchor
e.g. the top item."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>



```kotlin
public interface ScrollInfoProvider
```


An interface for providing scroll information for different scrollable containers, such lists.
Used for scrolling away, showing, hiding or scaling screen elements based on scrollable state.

`ScrollInfoProvider` can be used to create a ScrollAway modifier, typically applied to an object
that appears at the top of the screen to scroll it away vertically when a list is scrolled
upwards. The scrolled offset is typically calculated with reference to the position of an anchor
e.g. the top item.



