loadImage

fun loadImage(shuttle: Shuttle, cargoId: String): StateFlow<ShuttlePickupCargoResult>

Initiates cargo pickup from the com.grarcht.shuttle.framework.Shuttle warehouse using cargoId and returns a StateFlow that emits the result. The flow terminates automatically upon a success or error result.

Parameters

shuttle

the Shuttle instance used for cargo pickup.

cargoId

the identifier of the cargo to retrieve from the warehouse.