79116570

Date: 2024-10-23 06:09:59
Score: 0.5
Natty:
Report link

So, I resolve my issue. corrected navgraph

<argument
           android:name="bookingRequestList"  app:argType="di.model.parkingSpot.response.BookParkingResponse$Data[]"/>

// this is how i pass the data
findNavController().navigate(
                   MyParkFragmentDirections.toAllRequestListFragment(
                       it.parkingSpot?.parkingName!!,
                       arrayOf(it)
                   )
               )
   ```

So, this is the easy way to pass data, but what type of data is in our model class? what fragment was sent to the adapter and what type of data the adapter wants. it's a little bit tricky but when you understand. then it will become very easy for you
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vishal Thakur