I'm primarily an iOS developer but trying to gain proficiency with Android and Kotlin.
One of the basic things I know how to do in iOS is pass a View Controller by reference to create a callback mechanism. For example, a parent VC presents a child VC, the child collects some data from the user, then calls back the parent with the data. (This is the simplest case since we might use protocols or closures to make the code more robust, but ultimately it's the same idea).
With Android, when I create a new Activity, the parameters are serialized and passed by value through the Intent. So I don't appear to have any way to set up an equivalent callback mechanism.
How does a typical Android application implement this kind of a pattern?
Thanks, Frank