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
securePolicy | Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the modal navigation rail's window. |
shouldDismissOnBackPress | Whether 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,
)