How to pass a List as an argument to a Fragment using Navigation Component safeargs
问题 The documentation discusses how to send simple integers and strings. For example: <argument android:name="myIntArg" android:defaultValue="255" app:argType="integer" /> In the origin Fragment: val action = OriginFragmentDirections.myAction(myInt) findNavController().navigate(action) In the destination Fragment: val receivedInt = DestinationFragmentArgs.fromBundle(arguments).myIntArg But say instead of myIntArg , I wanted to send a list of integers ( myIntListArg ). How would I do that? What