NavigationResultRequest

class NavigationResultRequest<R>(val key: NavigationResultRequest.Key<R>, val state: StackEntryState, resultSerializer: KSerializer<R>)

Class returned from registerForNavigationResult.

The key can be passed to other destinations that can then call deliverNavigationResult with it to deliver a result R that will then be emitted by results.

Constructors

Link copied to clipboard
constructor(key: NavigationResultRequest.Key<R>, state: StackEntryState, resultSerializer: KSerializer<R>)

Types

Link copied to clipboard
@Serializable
class Key<R>(stackEntryId: StackEntry.Id, val requestKey: String)

Use to identify where the result should be delivered to.

Properties

Link copied to clipboard
Link copied to clipboard
val results: Flow<R>

Emits any result that was passed to deliverNavigationResult with the matching key.

Link copied to clipboard