NavigationSuiteScaffoldState

interface NavigationSuiteScaffoldState


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.

suspend Unit

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

suspend Unit

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

suspend Unit

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

Public properties

NavigationSuiteScaffoldValue

Whether the navigation component is currently shown or hidden.

Boolean

Whether the state is currently animating.

NavigationSuiteScaffoldValue

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

Public functions

hide

Added in 1.4.0
suspend fun hide(): Unit

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

show

Added in 1.4.0
suspend fun show(): Unit

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

snapTo

Added in 1.4.0
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

Added in 1.4.0
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

Added in 1.4.0
val currentValueNavigationSuiteScaffoldValue

Whether the navigation component is currently shown or hidden.

isAnimating

Added in 1.4.0
val isAnimatingBoolean

Whether the state is currently animating.

targetValue

Added in 1.4.0
val targetValueNavigationSuiteScaffoldValue

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