Pass data/bundle using navigateUp in Android Navigation Component

前端 未结 6 1122
予麋鹿
予麋鹿 2020-12-14 09:51

I found the question but does not have solution in code

I want to have data when backpress/manual back happens. I am using navigateUp() to go back. How

6条回答
  •  佛祖请我去吃肉
    2020-12-14 10:17

    You can use NavigationResult library. Basically it's startActivityForResult but for Fragments in Navigation component.

提交回复
热议问题