# PreviousButton

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/buttons/PreviousButton.composable#PreviousButton(androidx.media3.common.Player,kotlin.Function1)(player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PreviousButtonState.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` A state container for a button that seeks to the previous media item. |

## Functions

### PreviousButton

Artifact: [androidx.media3:media3-ui-compose](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/ui/compose/buttons/PreviousButton.kt+function:PreviousButton)

```
@UnstableApi
@Composable
fun PreviousButton(player: Player?, content: @Composable PreviousButtonState.() -> Unit): Unit
```

A state container for a button that seeks to the previous media item.

This composable manages the enabled state and click handling of a previous button. The UI is provided by the `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/buttons/package-summary#PreviousButton(androidx.media3.common.Player,kotlin.Function1)` lambda, which has access to the `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PreviousButtonState`.

| Parameters |
|---|---|
| `player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` to control. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/PreviousButtonState.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | The composable content to be displayed for the button. |