rememberAnsweringResultNavigator

fun <R : NavStack.Record> rememberAnsweringResultNavigator(navigator: Navigator, navStack: NavStack<R>, answeringResultHandler: AnsweringResultHandler = rememberAnsweringResultHandler()): AnsweringResultNavigator<R>(source)

Creates and remembers an AnsweringResultNavigator that wraps a base Navigator with result handling capabilities.

This is a convenience function that combines a regular navigator, navstack, and result handler into a single AnsweringResultNavigator instance that automatically manages result passing when screens are popped.

Return

An AnsweringResultNavigator that combines all three components.

Parameters

navigator

The base Navigator to wrap with result handling.

navStack

The NavStack used for tracking navigation state.

answeringResultHandler

The AnsweringResultHandler for managing screen results. Defaults to a new instance created via rememberAnsweringResultHandler. Only provide a custom handler if you need to share result handling across multiple navigation graphs or require custom result handling logic.

See also

for the wrapped navigator type

for creating a result handler