extractCargoId

fun extractCargoId(savedInstanceState: Bundle?, arguments: Bundle?): String

Extracts the cargo ID from the savedInstanceState or arguments bundle by reading the com.grarcht.shuttle.framework.model.ShuttleParcelCargo parcelable stored at the image cargo key.

Return

the cargo ID string, or an empty string if no cargo reference is found.

Parameters

savedInstanceState

the saved instance state bundle, used on configuration change.

arguments

the intent extras bundle, used on first launch.