A state object that can be hoisted to observe the navigation suite scaffold state. It allows for setting its navigation component to be hidden or displayed.

See also
rememberNavigationSuiteScaffoldState

to construct the default implementation.

Summary

Public functions

suspend Unit

Hide the navigation component with animation and suspend until it fully expands.

Cmn
suspend Unit

Show the navigation component with animation and suspend until it fully expands.

Cmn
suspend Unit

Set the state without any animation and suspend until it's set.

Cmn
suspend Unit

Hide the navigation component with animation if it's shown, or collapse it otherwise, and suspend until it fully expands.

Cmn

Public properties

NavigationSuiteScaffoldValue

Whether the navigation component is currently shown or hidden.

Cmn
Boolean

Whether the state is currently animating.

Cmn
NavigationSuiteScaffoldValue

Whether the navigation component is going to be shown or hidden.

Cmn

Public functions

hide

suspend fun hide(): Unit

Hide the navigation component with animation and suspend until it fully expands.

show

suspend fun show(): Unit

Show the navigation component with animation and suspend until it fully expands.

snapTo

suspend fun snapTo(targetValue: NavigationSuiteScaffoldValue): Unit

Set the state without any animation and suspend until it's set.

Parameters
targetValue: NavigationSuiteScaffoldValue

the value to set to

toggle

suspend fun toggle(): Unit

Hide the navigation component with animation if it's shown, or collapse it otherwise, and suspend until it fully expands.

Public properties

currentValue

val currentValueNavigationSuiteScaffoldValue

Whether the navigation component is currently shown or hidden.

isAnimating

val isAnimatingBoolean

Whether the state is currently animating.

targetValue

val targetValueNavigationSuiteScaffoldValue

Whether the navigation component is going to be shown or hidden.