This class serves as the Compose-layer adapter for the navigation event system. It holds the developer-defined history partitions (currentInfo, backInfo, forwardInfo) and is updated with the local transitionState by the NavigationEventHandler it is provided to.

This object is created via rememberNavigationEventState and consumed by NavigationEventHandler to link the hoisted history state with the active handler's callbacks and gesture state.

Summary

Public properties

List<T>

A list of destinations the user may navigate back to.

Cmn
T

The contextual information for the currently active destination.

Cmn
List<T>

A list of destinations the user may navigate forward to.

Cmn
NavigationEventTransitionState

The current physical gesture state from the dispatcher.

Cmn

Public properties

backInfo

val backInfoList<T>

A list of destinations the user may navigate back to.

currentInfo

val currentInfo: T

The contextual information for the currently active destination.

forwardInfo

val forwardInfoList<T>

A list of destinations the user may navigate forward to.

transitionState

val transitionStateNavigationEventTransitionState

The current physical gesture state from the dispatcher. This value is collected from the local NavigationEventHandler and will be either NavigationEventTransitionState.Idle or NavigationEventTransitionState.InProgress. This property will update frequently during a gesture.