Function

BackdropScaffoldState

State of the persistent bottom sheet in BackdropScaffold.

BackdropScaffoldState

Source set: Common
public fun BackdropScaffoldState(
    initialValue: BackdropValue,
    density: Density,
    animationSpec: AnimationSpec<Float> = BackdropScaffoldDefaults.AnimationSpec,
    confirmValueChange: (BackdropValue) -> Boolean = { true },
    snackbarHostState: SnackbarHostState = SnackbarHostState(),
): BackdropScaffoldState

State of the persistent bottom sheet in BackdropScaffold.

Parameters

initialValue The initial value of the state.
density The density that this state can use to convert values to and from dp.
animationSpec The default animation that will be used to animate to a new state.
confirmValueChange Optional callback invoked to confirm or veto a pending state change.
snackbarHostState The SnackbarHostState used to show snackbars inside the scaffold.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: