Stop location updates in Kotlin Jetpack Compose Android Studio
I’m developing an app with Kotlin Jetpack Compose according to the MVVM pattern.
I would like the position to be acquired only when the user is on the home page, so when he moves to other screens the updates should be stopped.