... private fun handleBackEventInChildFragment(): Boolean { val current = navHostFragment .childFragmentManager .fragments.elementAtOrNull(0) if (current is OnBackPressedListener) { return current.onBackPressed() } return false } } Front Fragment onBackPressed() ഐ
?: DefaultScene is UpScene -> scene.run { if (findNavController().popBackStack(destinationId, inclusive)) { requestCode?.let { /* Save result to ResultManager */ } } } RequestCodeо ਵݶ, Result
super.onResume() dispatchFragmentResult() } private fun dispatchFragmentResult() { /* Restore result from ResultManager */ } onResume()ীࢲ അ ചݶ Result ഛੋ