{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BottomSheetScaffoldState

@ExperimentalMaterial3Api
public final class BottomSheetScaffoldState


State of the BottomSheetScaffold composable.

Summary

Public constructors

BottomSheetScaffoldState(
    @NonNull SheetState bottomSheetState,
    @NonNull SnackbarHostState snackbarHostState
)

Public methods

final @NonNull SheetState

the state of the persistent bottom sheet

final @NonNull SnackbarHostState

the SnackbarHostState used to show snackbars inside the scaffold

Public constructors

BottomSheetScaffoldState

public BottomSheetScaffoldState(
    @NonNull SheetState bottomSheetState,
    @NonNull SnackbarHostState snackbarHostState
)
Parameters
@NonNull SheetState bottomSheetState

the state of the persistent bottom sheet

@NonNull SnackbarHostState snackbarHostState

the SnackbarHostState used to show snackbars inside the scaffold

Public methods

getBottomSheetState

public final @NonNull SheetState getBottomSheetState()

the state of the persistent bottom sheet

getSnackbarHostState

public final @NonNull SnackbarHostState getSnackbarHostState()

the SnackbarHostState used to show snackbars inside the scaffold