---
title: "OverscrollFactory"
description: "A factory for creating [OverscrollEffect]s. You can provide a factory instance to
[LocalOverscrollFactory] to globally change the factory, and hence effect, used by components
within the hierarchy.

See [rememberOverscrollEffect] to remember an [OverscrollEffect] from the current factory
provided to [LocalOverscrollFactory]."
type: "interface"
---

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


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

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface OverscrollFactory
```


A factory for creating `OverscrollEffect`s. You can provide a factory instance to
`LocalOverscrollFactory` to globally change the factory, and hence effect, used by components
within the hierarchy.

See `rememberOverscrollEffect` to remember an `OverscrollEffect` from the current factory
provided to `LocalOverscrollFactory`.


## Functions

```kotlin
fun createOverscrollEffect(): OverscrollEffect
```


Returns a new `OverscrollEffect` instance.


```kotlin
override fun hashCode(): Int
```


Require hashCode() to be implemented. Using a data class is sufficient. Singletons and
instances with no properties may implement this function by returning an arbitrary constant.


```kotlin
override fun equals(other: Any?): Boolean
```


Require equals() to be implemented. Using a data class is sufficient. Singletons may
implement this function with referential equality (`this === other`). Instances with no
properties may implement this function by checking the type of the other object.



