# BottomAppBarScrollBehavior

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/AppBar.kt+class:androidx.compose.material3.BottomAppBarScrollBehavior) Common/AllAndroid/JVM
- Cmn

  ```
  interface BottomAppBarScrollBehavior
  ```

*** ** * ** ***

A BottomAppBarScrollBehavior defines how a bottom app bar should behave when the content under it is scrolled.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarDefaults#exitAlwaysScrollBehavior(androidx.compose.material3.BottomAppBarState,kotlin.Function0,androidx.compose.animation.core.AnimationSpec,androidx.compose.animation.core.DecayAnimationSpec)` |   |

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>?` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior#flingAnimationSpec()` An optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec` that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior#isPinned()` Indicates whether the bottom app bar is pinned. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/NestedScrollConnection` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior#nestedScrollConnection()` A `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/NestedScrollConnection` that should be attached to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/nestedScroll.modifier#(androidx.compose.ui.Modifier).nestedScroll(androidx.compose.ui.input.nestedscroll.NestedScrollConnection,androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher)` in order to keep track of the scroll events. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>?` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior#snapAnimationSpec()` An optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarState` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarScrollBehavior#state()` A `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarState` that is attached to this behavior and is read and updated when scrolling happens. | Cmn |

## Public properties

### flingAnimationSpec

Cmn

```
val flingAnimationSpec: DecayAnimationSpec<Float>?
```

An optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DecayAnimationSpec` that defines how to fling the bottom app bar when the user flings the app bar itself, or the scrollable content.

### isPinned

Cmn

```
val isPinned: Boolean
```

Indicates whether the bottom app bar is pinned.

A pinned app bar will stay fixed in place when content is scrolled and will not react to any drag gestures.

### nestedScrollConnection

Cmn

```
val nestedScrollConnection: NestedScrollConnection
```

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/NestedScrollConnection` that should be attached to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/nestedScroll.modifier#(androidx.compose.ui.Modifier).nestedScroll(androidx.compose.ui.input.nestedscroll.NestedScrollConnection,androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher)` in order to keep track of the scroll events.

### snapAnimationSpec

Cmn

```
val snapAnimationSpec: AnimationSpec<Float>?
```

An optional `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that defines how the bottom app bar snaps to either fully collapsed or fully extended state when a fling or a drag scrolled it into an intermediate position.

### state

Cmn

```
val state: BottomAppBarState
```

A `https://developer.android.com/reference/kotlin/androidx/compose/material3/BottomAppBarState` that is attached to this behavior and is read and updated when scrolling happens.