Why no gestures yet in Compose? should we manage gestures at the Activity level and just update the ViewModel?
Leland Richardson [G]
11/16/2019, 6:17 AM
there are gestures in compose… what is it you’re looking for?
11/16/2019, 6:41 AM
just a simple down or fling
want to detect swipes
found nothing searching?
11/16/2019, 2:30 PM
Look for the FooGestureDetector composable functions and feel free to click through how they're built up from the raw events if you want more than is currently available. If you have a specific use case we'd be happy to add it to the list of things to consider or to make sure it's possible to build with the public API
11/16/2019, 2:33 PM
Thanks @Adam Powell, where would I look for this? you mean using code completion inside a view?
11/16/2019, 2:36 PM
Yes, autocomplete inside another composable function body that would be a good place to start. The gesture detectors are the gesture events themselves and we have some additional layers for helping you wire them up to other content in your UI. Clickable is a good example of this, if you ctrl-click through Clickable you can see how the layers are put together and what the other primitives are