# ModalBottomSheetDefaults

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/ModalBottomSheet.+class:androidx.compose.material3.ModalBottomSheetDefaults) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMaterial3Api
  object ModalBottomSheetDefaults
  ```

*** ** * ** ***

Default values for `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheet.composable#ModalBottomSheet(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.material3.SheetState,androidx.compose.ui.unit.Dp,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,kotlin.Function0,kotlin.Function0,androidx.compose.material3.ModalBottomSheetProperties,kotlin.Function1)`

## Summary

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetProperties` | `[properties](https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetDefaults#properties(androidx.compose.ui.window.SecureFlagPolicy,kotlin.Boolean,kotlin.Boolean))( securePolicy: https://developer.android.com/reference/kotlin/androidx/compose/ui/window/SecureFlagPolicy, isFocusable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, shouldDismissOnBackPress: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** 'isFocusable' param is no longer used. | android |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetProperties` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetDefaults#properties()` Properties used to customize the behavior of a `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheet.composable#ModalBottomSheet(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.material3.SheetState,androidx.compose.ui.unit.Dp,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,kotlin.Function0,kotlin.Function0,androidx.compose.material3.ModalBottomSheetProperties,kotlin.Function1)`. | Cmn android |

## Public functions

### properties

android

```
fun [properties](https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetDefaults#properties(androidx.compose.ui.window.SecureFlagPolicy,kotlin.Boolean,kotlin.Boolean))(
    securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
    isFocusable: Boolean = true,
    shouldDismissOnBackPress: Boolean = true
): ModalBottomSheetProperties
```

> [!CAUTION]
> **This function is deprecated.**   
> 'isFocusable' param is no longer used. Use value without this parameter, use this instead:
>
> ```kotlin
> properties
> ```

Properties used to customize the behavior of a `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheet.composable#ModalBottomSheet(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.material3.SheetState,androidx.compose.ui.unit.Dp,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,kotlin.Function0,kotlin.Function0,androidx.compose.material3.ModalBottomSheetProperties,kotlin.Function1)`.

| Parameters |
|---|---|
| `securePolicy: https://developer.android.com/reference/kotlin/androidx/compose/ui/window/SecureFlagPolicy = SecureFlagPolicy.Inherit` | Policy for setting `https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE` on the bottom sheet's window. |
| `isFocusable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | Whether the modal bottom sheet is focusable. When true, the modal bottom sheet will receive IME events and key presses, such as when the back button is pressed. |
| `shouldDismissOnBackPress: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | Whether the modal bottom sheet can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest. Note that `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheetDefaults#properties(androidx.compose.ui.window.SecureFlagPolicy,kotlin.Boolean,kotlin.Boolean)` must be set to true in order to receive key events such as the back button - if the modal bottom sheet is not focusable then this property does nothing. |

## Public properties

### properties

Cmn android

```
val properties: ModalBottomSheetProperties
```

Properties used to customize the behavior of a `https://developer.android.com/reference/kotlin/androidx/compose/material3/ModalBottomSheet.composable#ModalBottomSheet(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.material3.SheetState,androidx.compose.ui.unit.Dp,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,kotlin.Function0,kotlin.Function0,androidx.compose.material3.ModalBottomSheetProperties,kotlin.Function1)`.