<is there a way to pass value from data class to a...
# stackoverflow
u
is there a way to pass value from data class to another class in Kotlin? Sorry, I'm new to Java/Kotlin mobile apps... Below code snippet from RegisterFragment.kt which is the main class:- override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) val username = binding.text PackageSdk.getInstance().hasDuplicateUserKey(username, object : PackageResponseCallback { override fun onSuccess(result: ResultResponse) { Log.i(TAG, "Result code : " +...