Screen

actual interface Screen : Parcelable(source)
expect interface Screen(source)

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,
) : Screen

Screens are then passed into a Navigator to navigate to them.

fun showAddFavorites() {
navigator.goTo(
AddFavorites(
externalId = uuidGenerator.generate()
)
)
}
actual interface Screen(source)
actual interface Screen(source)
actual interface Screen(source)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)