ScaffoldState
Kotlin
|Java
@Stable class ScaffoldState
kotlin.Any | |
↳ | androidx.compose.material.ScaffoldState |
State for Scaffold composable component.
Contains basic screen state, e.g. Drawer configuration, as well as sizes of components after layout has happened
Summary
Public constructors | |
---|---|
<init>(drawerState: DrawerState, snackbarHostState: SnackbarHostState) State for Scaffold composable component. |
Properties | |
---|---|
DrawerState |
the drawer state |
SnackbarHostState |
instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold |
Public constructors
<init>
ScaffoldState(
drawerState: DrawerState,
snackbarHostState: SnackbarHostState)
State for Scaffold composable component.
Contains basic screen state, e.g. Drawer configuration, as well as sizes of components after layout has happened
Parameters | |
---|---|
drawerState: DrawerState | the drawer state |
snackbarHostState: SnackbarHostState | instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold |
Properties
snackbarHostState
val snackbarHostState: SnackbarHostState
instance of SnackbarHostState to be used to show Snackbars inside of the Scaffold