I have a "User" object and it has properties like name, email, phone number, address etc.
Now I have an activity called "Register_Activity" which has different fragments for setting name, validating and setting email, etc.
Now in the SetNameFragment, I create an instance of the User object and call setName on it.
Now how to I pass this object to the next fragment?
I was thinking of using ViewModel but I don't think it's meant for such operations.
Another way which I have been using is creating an instance of User in Activity and then calling the object from the fragment and setting its values, It works but I want to be sure if this is the right way.