Replies: 2 comments 1 reply
-
Possibly something like |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm working on fix the current Voyager LifecycleOwner to support proper Activity In the mean time, what you can do is something like this: val LocalActivityLifecycleOwner = staticCompositionLocalOf<LifecycleOwner> {
error("CompositionLocal LocalActivityLifecycleOwner not present")
}
@Composable
fun YourApplication() {
CompositionLocalProvider(
LocalActivityLifecycleOwner provides LocalLifecycleOwner.current
) {
Navigator(...)
} Then, at your screens, if you want to listen to the Activity Lifecycle events, you just pull |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. Help me figure out how to track the life cycle of an activity inside Screen. I need to call methods inside a non-compose library, like map.onStart(), map.onStop() using AndoridView
Beta Was this translation helpful? Give feedback.
All reactions