Written on
·
249
0
A 라는 data class를 넘겨주고 싶어서 이렇게 써봤는데 null 이 나오더라구요.. string으로 하나하나 넘겨주면되긴하던데
data class 에 serializable도 썼는데 넘겨줄방법이없는건가요?
setFragmentResultListener("item") { resultKey, bundle ->
val test = bundle.getBundle("data")
Log.e("tag", "뭐야 "+ test)
}
Answer 1
0
bundle에서 Serializable 객체를 얻을 때는 bundle.getSerializable("data") 하시면 될 것 같습니다.