andrew
05/04/2023, 7:23 PMStylianos Gakis
05/04/2023, 7:51 PMandrew
05/04/2023, 7:55 PMStylianos Gakis
05/04/2023, 9:26 PMandrew
05/04/2023, 9:27 PMStylianos Gakis
05/04/2023, 9:32 PMandrew
05/04/2023, 9:32 PMStylianos Gakis
05/04/2023, 9:33 PMandrew
05/04/2023, 9:34 PMStylianos Gakis
05/04/2023, 9:40 PMIan Lake
05/04/2023, 9:51 PMOnBackPressedCallback
instances - that's what allows your app to get the gesture start callback and react to finger movements to do that Predictive animationBackHandler
is going to be getting this same ability to get start and progress events, which will mean any composable or navigation library can interact with Predictive Back in-app progress on Android 14+
2. AnimatedContent
and friends are going to get new APIs to handle this in between state (e.g., instead of just a targetState
, it would let you update the progress
between two states) - this is what you'd actually do with the progress callbacks BackHandler
gives you
3. NavHost
will update its BackHandler
to call the new APIs on AnimatedContent
, thus giving you predictive back animations based on the transitions you've set for freeandrew
05/04/2023, 10:20 PMStylianos Gakis
05/06/2023, 11:29 PMAnimatedContent
which supports setting a progress too? Is there some issue that we can track, or some work that is already happening atm? Feels like that is the biggest of the pieces missing in this puzzle right?Alex Vanyo
05/07/2023, 7:38 PMandrew
05/07/2023, 7:38 PMIan Lake
05/07/2023, 7:41 PMandrew
05/07/2023, 7:42 PM