Unified API for system Back and Predictive Back events, simplifying back navigation and predictive gesture support across app components and lifecycles.
The Navigation Event library provides a KMP-first API for handling system back as well as Predictive Back.
To add a dependency on navigationevent, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
dependencies {
implementation("androidx.navigationevent:navigationevent:1.0.1")
}
dependencies {
implementation "androidx.navigationevent:navigationevent:1.0.1"
}
For more information about dependencies, see Add build dependencies.
The Navigation Event library provides a KMP-first API for handling system back as well as Predictive Back.
To add a dependency on navigationevent, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
dependencies {
implementation("androidx.navigationevent:navigationevent:1.0.1")
}
dependencies {
implementation "androidx.navigationevent:navigationevent:1.0.1"
}
For more information about dependencies, see Add build dependencies.