Start native apps faster with the Composables CLI ->
Object

ModalBottomSheetDefaults

Default values for ModalBottomSheet

Source set: Android
public object ModalBottomSheetDefaults

Default values for ModalBottomSheet

Properties

properties

Source set: Android
public val properties: ModalBottomSheetProperties = ModalBottomSheetProperties()

Properties used to customize the behavior of a ModalBottomSheet.

Functions

properties

Source set: Android
@Deprecated(
        level = DeprecationLevel.WARNING,
        message = "'isFocusable' param is no longer used. Use value without this parameter.",
        replaceWith = ReplaceWith("properties"),
    )
    public fun properties(
        securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
        isFocusable: Boolean = true,
        shouldDismissOnBackPress: Boolean = true,
    ): ModalBottomSheetProperties

Properties used to customize the behavior of a ModalBottomSheet.

Parameters

securePolicy Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the bottom sheet's window.
isFocusable 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 Whether the modal bottom sheet can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest. Note that isFocusable 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.
Source set: Common
public object ModalBottomSheetDefaults

Default values for ModalBottomSheet

Properties

properties

Source set: Common
public val properties: ModalBottomSheetProperties

Properties used to customize the behavior of a ModalBottomSheet.