Answers for "handle on backpressed in fragment"

3

onBackPressed() in fragment

activity?.onBackPressedDispatcher?.addCallback(viewLifecycleOwner, object : OnBackPressedCallback(true) {
            override fun handleOnBackPressed() {

            }
        })
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language