https://kotlinlang.org logo
#compose-wear
Title
# compose-wear
b

Beowulf

10/02/2023, 9:45 AM
The
SwipeDismissableNavHost
does not have haptic feedback when the user navigates back (everything else (apps, settings, etc) have this feedback. The users are also complaining about the missing feedback, so I wanted to add it myself with the
confirmStateChange
from
rememberSwipeToDismissBoxState
, but what is the correct haptic feedback for the back navigation? Here (https://developer.android.com/reference/android/view/HapticFeedbackConstants) is e.g. no constant for back navigation listed.
Ok, but putting it in the
confirmStateChange
lambda has the disadvantage, that the feedback is performed when the drag is finished, instead of when the drag starts :/
y

yschimke

10/05/2023, 8:30 AM
I don't think it's consistent across devices, and I don't think it can go into Wear Compose SwipeDismissableNavHost yet because of some missing platform support. I'd suggest raising a feature request against Wear Compose to track. Because it's not a standard platform thing, I'm not sure we have a spec for this even if we wanted to implement the logic in Horologist.
🆗 1
2 Views