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

```kotlin
public object RotaryScrollableDefaults
```

Defaults for rotaryScrollable modifier

## Functions

<h2 id="behavior-scrollablestate-flingbehavior-hapticfeedbackenabled">behavior</h2>

```kotlin
@Composable
public fun behavior(
    scrollableState: ScrollableState,
    flingBehavior: FlingBehavior? = ScrollableDefaults.flingBehavior(),
    hapticFeedbackEnabled: Boolean = true,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with or without
fling - used with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is not required.

If fling is not required, set [flingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/FlingBehavior) = null. In that case, flinging will not happen
and the scrollable content will stop scrolling immediately after the user stops interacting
with rotary input.

#### Parameters

| | |
| --- | --- |
| scrollableState | Scrollable state which will be scrolled while receiving rotary events. |
| flingBehavior | Optional rotary fling behavior, pass null to turn off fling if necessary. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-scrollablestate-layoutinfoprovider-snapoffset-hapticfeedbackenabled">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    scrollableState: ScrollableState,
    layoutInfoProvider: RotarySnapLayoutInfoProvider,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
    @FloatRange(from = 0.0, to = 1.0) snapSensitivity: Float = LowSnapSensitivity,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap - used
with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is required.

#### Parameters

| | |
| --- | --- |
| scrollableState | Scrollable state which will be scrolled while receiving rotary events. |
| layoutInfoProvider | A connection between scrollable entities and rotary events. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |
| snapSensitivity | Configures the sensitivity for rotary snapping. Defaults to `RotaryScrollableDefaults.LowSnapSensitivity`. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-scrollablestate-layoutinfoprovider-snapoffset-hapticfeedbackenabled-2">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    scrollableState: ScrollableState,
    layoutInfoProvider: RotarySnapLayoutInfoProvider,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap - used
with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is required.

#### Parameters

| | |
| --- | --- |
| scrollableState | Scrollable state which will be scrolled while receiving rotary events. |
| layoutInfoProvider | A connection between scrollable entities and rotary events. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-scrollablestate-snapoffset-hapticfeedbackenabled">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    scrollableState: ScalingLazyListState,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
    @FloatRange(from = 0.0, to = 1.0) snapSensitivity: Float = LowSnapSensitivity,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap for
[ScalingLazyColumn](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/ScalingLazyColumn) - used with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is required.

#### Parameters

| | |
| --- | --- |
| scrollableState | [ScalingLazyListState](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/ScalingLazyListState) to which rotary scroll will be connected. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |
| snapSensitivity | Configures the sensitivity for rotary snapping. Defaults to `RotaryScrollableDefaults.LowSnapSensitivity`. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-scrollablestate-snapoffset-hapticfeedbackenabled-2">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    scrollableState: ScalingLazyListState,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap for
[ScalingLazyColumn](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/ScalingLazyColumn) - used with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is required.

#### Parameters

| | |
| --- | --- |
| scrollableState | [ScalingLazyListState](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/ScalingLazyListState) to which rotary scroll will be connected. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-scrollablestate-snapoffset-hapticfeedbackenabled-3">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    scrollableState: TransformingLazyColumnState,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
    @FloatRange(from = 0.0, to = 1.0) snapSensitivity: Float = LowSnapSensitivity,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap for
[TransformingLazyColumn](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/TransformingLazyColumn) - used with the [rotaryScrollable](/jetpack-compose/androidx.wear.compose/compose-foundation/modifiers/rotaryScrollable) modifier when snapping is
required.

#### Parameters

| | |
| --- | --- |
| scrollableState | [TransformingLazyColumnState](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/TransformingLazyColumnState) to which rotary scroll will be connected. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |
| snapSensitivity | Configures the sensitivity for rotary snapping. Defaults to `LowSnapSensitivity`. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-pagerstate-snapoffset-hapticfeedbackenabled">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    pagerState: PagerState,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
    @FloatRange(from = 0.0, to = 1.0) snapSensitivity: Float = HighSnapSensitivity,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap for
[HorizontalPager](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/HorizontalPager) and [VerticalPager](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/VerticalPager).

#### Parameters

| | |
| --- | --- |
| pagerState | [PagerState](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/PagerState) to which rotary scroll will be connected. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |
| snapSensitivity | Configures the sensitivity for rotary snapping. Defaults to `RotaryScrollableDefaults.HighSnapSensitivity` which is suitable for Pagers with at least 10 pages. See also `RotaryScrollableDefaults.LowSnapSensitivity` for context where there are fewer pages. |

<hr class="docs-overload-divider">

<h2 id="snapbehavior-pagerstate-snapoffset-hapticfeedbackenabled-2">snapBehavior</h2>

```kotlin
@Composable
public fun snapBehavior(
    pagerState: PagerState,
    snapOffset: Dp = 0.dp,
    hapticFeedbackEnabled: Boolean = true,
): RotaryScrollableBehavior
```

Implementation of [RotaryScrollableBehavior](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/RotaryScrollableBehavior) to define scrolling behaviour with snap for
[HorizontalPager](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/HorizontalPager) and [VerticalPager](/jetpack-compose/androidx.wear.compose/compose-foundation/composable-functions/VerticalPager).

#### Parameters

| | |
| --- | --- |
| pagerState | [PagerState](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/PagerState) to which rotary scroll will be connected. |
| snapOffset | An optional offset to be applied when snapping the item. Defines the distance from the center of the scrollable to the center of the snapped item. |
| hapticFeedbackEnabled | Controls whether haptic feedback is given during rotary scrolling (true by default). It's recommended to keep the default value of true for premium scrolling experience. |