Quick question. Is it possible to decide what happ...
# compose-android
j
Quick question. Is it possible to decide what happens on back gesture?
Whenever someone selects an item in my app, the UI changes so that the user can take certain actions. When pressing back tho the user will be taken out of the whole app instead of our of the deletion mode
Screenshot_20230806-162359_Trebuchet.png
h
You can use a
BackHandler
for custom actions.
Copy code
BackHandler(enabled: Boolean = true, onBack: () -> Unit)
🙏 1
j
Thanks to both of you!!