SecondViewModel
The MVVM androidx.lifecycle.ViewModel for the second screen in the MVVM with Compose 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.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Initiates cargo pickup from the com.grarcht.shuttle.framework.Shuttle warehouse using cargoId and updates pickupCargoState with the result. The pickup terminates automatically upon a success or error result.