https://kotlinlang.org logo
#compose
Title
# compose
f

farzad

08/20/2020, 8:21 PM
How can I close drawer on back pressed?
stackoverflow 2
google 2
h

Halil Ozercan

08/20/2020, 8:30 PM
There is new OnBackPressedDispatcher https://developer.android.com/reference/androidx/activity/OnBackPressedDispatcher . I believe it can also work with Compose if you combine it with Ambients. Also you might wanna check out this post https://proandroiddev.com/implementing-back-navigation-with-jetpack-compose-550b544e4205
2 Views