How can i override activity lifecycle methods in a...
# compose
s
How can i override activity lifecycle methods in a composable? i've a composable called "HomeScreen" now i want to have all activity lifecycle methods in it. Currently i've ios and android in commonMain.
z
You can use LocalLifecycleOwner to get access to the Lifecycle and register listeners on there
s
i tried but that seems to be not working in ios.
z
Oh yea, because that’s an android concept
I have no idea what would be the analogous concept on ios, or how to access it via compose. You might want to post in #compose-ios
👍 1