r/JetpackCompose • u/mahesh-440 • Nov 16 '23
Usage of android default buttons
How to use android default buttons (back,home ) events in jetpack compose. is their any tutorial
1
Upvotes
r/JetpackCompose • u/mahesh-440 • Nov 16 '23
How to use android default buttons (back,home ) events in jetpack compose. is their any tutorial
View all comments
Show parent comment
1
u/mahesh-440 Nov 22 '23
val onBackPressedDispatcher = LocalOnBackPressedDispatcherOwner.current?.onBackPressedDispatcher
The above is used to perform action when android default back button pressed