Kotlin: Pass custom object via intent in kotlin

Question or issue of Kotlin Programming: fun launchNextScreen(context: Context, people: People): Intent { val intent = Intent(context, NextScreenActivity::class.java) intent.putExtra(EXTRA_PEOPLE, (Parcelable) people) //intent.putExtra(EXTRA_PEOPLE, people as Parcelable) //intent.putExtra(EXTRA_PEOPLE, people) // tried above all three ways return intent } I tried the above code to pass an instance of the People class via intent using kotlin, but I […]

Continue Reading