ModalBottomSheetProperties



Properties used to customize the behavior of a ModalBottomSheet.

Summary

Public constructors

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

Public functions

open operator Boolean
equals(other: Any?)
android
open Int
android

Public properties

Boolean

Whether the modal bottom sheet is focusable.

android
SecureFlagPolicy

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

android
Boolean

Whether the modal bottom sheet can be dismissed by pressing the back button.

android

Public constructors

ModalBottomSheetProperties

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

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

isFocusable: Boolean

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

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 functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

isFocusable

val isFocusableBoolean

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.

securePolicy

val securePolicySecureFlagPolicy

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

shouldDismissOnBackPress

val shouldDismissOnBackPressBoolean

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.