Interface

NavigationSuiteScaffoldState

A state object that can be hoisted to observe the navigation suite scaffold state.

Source set: Common
public 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.

Properties

isAnimating

Source set: Common
public val isAnimating: Boolean

Whether the state is currently animating.

targetValue

Source set: Common
public val targetValue: NavigationSuiteScaffoldValue

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

currentValue

Source set: Common
public val currentValue: NavigationSuiteScaffoldValue

Whether the navigation component is currently shown or hidden.

Functions

hide

Source set: Common
public suspend fun hide()

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

show

Source set: Common
public suspend fun show()

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

toggle

Source set: Common
public suspend fun toggle()

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

snapTo

Source set: Common
public suspend fun snapTo(targetValue: NavigationSuiteScaffoldValue)

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

Parameters

targetValue the value to set to
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: