ModalBottomSheetDefaults


Default values for ModalBottomSheet

Summary

Public functions

ModalBottomSheetProperties
properties(
    securePolicy: SecureFlagPolicy,
    isFocusable: Boolean,
    shouldDismissOnBackPress: Boolean
)

This function is deprecated. 'isFocusable' param is no longer used.

android

Public properties

ModalBottomSheetProperties

Properties used to customize the behavior of a ModalBottomSheet.

Cmn
android

Public functions

properties

fun properties(
    securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
    isFocusable: Boolean = true,
    shouldDismissOnBackPress: Boolean = true
): ModalBottomSheetProperties

Properties used to customize the behavior of a ModalBottomSheet.

Parameters
securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the bottom sheet's window.

isFocusable: Boolean = 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: Boolean = 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 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.

Public properties

properties

val propertiesModalBottomSheetProperties

Properties used to customize the behavior of a ModalBottomSheet.