ModalBottomSheetProperties



Properties used to customize the behavior of a ModalBottomSheet.

Summary

Public constructors

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

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

android

Public functions

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

Public properties

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 = SecureFlagPolicy.Inherit,
    shouldDismissOnBackPress: Boolean = true
)
Parameters
securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit

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

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.

ModalBottomSheetProperties

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

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

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.