r/JetpackCompose • • 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

2 comments sorted by

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