Screen
Represents an individual screen, used as a key for Presenter.Factory and Ui.Factory.
Screens can be simple sentinel data object types or data classes with information to share. Screens with information should contain the minimum amount of data needed for the target presenter to begin presenting state.
data class AddFavorites(
val externalId: UUID,
) : ScreenContent copied to clipboard
Screens are then passed into a Navigator to navigate to them.
fun showAddFavorites() {
navigator.goTo(
AddFavorites(
externalId = uuidGenerator.generate()
)
)
}Content copied to clipboard