Record

data class Record(val screen: Screen, val args: Map<String, Any?> = emptyMap(), val key: String = uuid4().toString()) : BackStack.Record(source)

Constructors

Link copied to clipboard
constructor(screen: Screen, args: Map<String, Any?> = emptyMap(), key: String = uuid4().toString())

Properties

Link copied to clipboard
val args: Map<String, Any?>
Link copied to clipboard
open override val key: String

A value that identifies this record uniquely, even if it shares the same screen with another record. This key may be used by BackStackRecordLocalProviders to associate presentation data with a record across composition recreation.

Link copied to clipboard
open override val screen: Screen

The Screen that should present this record.

Functions

Link copied to clipboard
open suspend override fun awaitResult(key: String): PopResult?

Awaits a PopResult produced by the record that previously sat on top of the stack above this one. Returns null if no result was produced.