ModalWideNavigationRailProperties

Class

Common
@ExperimentalMaterial3ExpressiveApi
expect class ModalWideNavigationRailProperties(shouldDismissOnBackPress: Boolean = true)

Properties

Common
val shouldDismissOnBackPress: Boolean
Android
@ExperimentalMaterial3ExpressiveApi
actual class ModalWideNavigationRailProperties(
    val securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
    @get:Suppress("GetterSetterNames") actual val shouldDismissOnBackPress: Boolean = true,
)

Properties used to customize the behavior of a ModalWideNavigationRail.

Parameters

securePolicyPolicy for setting WindowManager.LayoutParams.FLAG_SECURE on the modal navigation rail's window.
shouldDismissOnBackPressWhether the modal navigation rail can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest.

Secondary Constructors

actual constructor(
    shouldDismissOnBackPress: Boolean
) : this(
    securePolicy = SecureFlagPolicy.Inherit,
    shouldDismissOnBackPress = shouldDismissOnBackPress,
)