Ahmet Hasim Delibas
09/19/2023, 6:33 PMBackHandler
does not catch backs via swiping (in SwipeDismissableNavHost
), as it does in mobile side. Now I need to do some arrengements onBackHandler, how could I do this in wear OS?stevebower
09/21/2023, 12:39 PMAhmet Hasim Delibas
09/21/2023, 1:03 PMBackHandler
which handles swipe back events too. Right now back events via swiping is not caught by BackHandler
, so I can’t override the process for wear OS (as I do in mobile development).If you are trying to add additional handling when the user swipes to navigate back, there’s some code here that shows how to do that: https://issuetracker.google.com/issues/292590712#comment4Hmm that might work for me too
stevebower
09/21/2023, 1:15 PMAhmet Hasim Delibas
09/21/2023, 1:19 PMIan Lake
09/21/2023, 10:14 PMonBackPressed()
or anything else built on that infrastructure like BackHandler
. That's always been the case.
The Wear team is aware (ha) of that difference, but it is a difference that is baked into the current version of Wear OS itself, so even if it were to change, it would only apply to that hypothetical newer version of Wear