0
class FragmentA: Fragment() { 

fun changeFragment(activity: Activity, id: Int, b: Bundle) {
        findNavController(
            activity,
            R.id.nav_fragment_b
        ).navigate(
            id,
            b
        )
    }
}

FragmentB (var name:String): Fragment(){

}

In This I want to move from FragmentA to FragmentB where FragmentB is asking argument in its primary Constructor using NavGraph. I dont want to pass arguments using bundle

I have gone through this also link

Bas H
  • 2,114
  • 10
  • 14
  • 23
Shadab
  • 1
  • 3

0 Answers0