navigateUpWithResult

abstract fun <R> navigateUpWithResult(from: DestinationId<*, R>, result: R)

Navigates up to previous destination passing the given result, or finishes the Activity.

Parameters

from

The destination from which navigating up.

result

The result, which will be passed to the previous destination. The returned object will be saved in SavedStateHandle, therefore it must be savable to a Bundle.