Package-level declarations

Types

Link copied to clipboard

The MVVM androidx.lifecycle.ViewModel for the first screen in the MVVM demo. Delegates image loading to a com.grarcht.shuttle.demo.core.viewmodel.DefaultImageLoader and emits one-shot NavigationEvents when the user requests navigation.

Link copied to clipboard
data class NavigationCargo(val cargoId: String, val imageModel: ImageModel)

Bundles a cargo identifier with the ImageModel that should be transported to the second screen.

Link copied to clipboard
sealed class NavigationEvent

One-shot navigation events emitted by FirstViewModel to the view. The view collects these and executes the corresponding platform navigation.

Link copied to clipboard

The MVVM androidx.lifecycle.ViewModel for the second screen in the MVVM demo. Picks up cargo from the com.grarcht.shuttle.framework.Shuttle warehouse and exposes the result as a StateFlow of com.grarcht.shuttle.framework.result.ShuttlePickupCargoResult.