OverscrollFactory

Interface

Common
interface OverscrollFactory

A factory for creating OverscrollEffects. 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

fun createOverscrollEffect(): OverscrollEffect

Returns a new OverscrollEffect instance.

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.

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.