Last active
October 29, 2022 13:34
-
-
Save hamurcuabi/957606ed1c538c89bd0f162e3c8a9714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeFragment : Fragment(), | |
OnBackPressedDelegation by OnBackPressedDelegationImpl() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
registerOnBackPressedDelegation(activity, this.lifecycle) { | |
// OnBackPressed fired!!! | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment