About Predictive back

Predictive back, a gesture navigation feature, lets users preview where the back swipe takes them. Predictive back seamlessly integrates with Compose to enhance your app's navigation experience. Users enjoy smoother and more intuitive transitions when navigating back within your app. Figure 1 shows how this works in the SociaLite sample app.

Figure 1. The back-to-home animation in the SociaLite sample app.

See our guides to do the following with predictive back:

  • Opt-in to the predictive back gesture
  • Enable default system animations
  • Enable predictive back with Navigation Compose
  • Integrate with shared element transitions
  • Support predictive back with Material Compose components
  • Access progress manually with PredictiveBackHandler
  • Test the predictive back gesture animation