andrew
05/04/2023, 7:23 PMStylianos Gakis
05/04/2023, 7:51 PMandrew
05/04/2023, 7:55 PMandrew
05/04/2023, 7:56 PMStylianos Gakis
05/04/2023, 9:26 PMandrew
05/04/2023, 9:27 PMandrew
05/04/2023, 9:31 PMandrew
05/04/2023, 9:31 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 PMandrew
05/04/2023, 9:34 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 animationIan Lake
05/04/2023, 9:54 PMBackHandler 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 PMandrew
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 PMandrew
05/07/2023, 7:39 PMIan Lake
05/07/2023, 7:41 PMandrew
05/07/2023, 7:42 PMArkadii Ivanov
10/08/2023, 12:51 PMArkadii Ivanov
10/08/2023, 2:20 PMIan Lake
10/08/2023, 3:25 PMSeekableTransitionState API added to make AnimatedContent seekable is currently still experimental API, but that's what we'd be hooking into `PredictiveBackHandler`: https://androiddev.social/@ianlake/110942864725304854