Hello everyone do anyone know how to handle activity lifecycle in compose ios such as // onStart, onResume, onPause, onStop, onDestroy . Kindly assist
p
Pablichjenkov
12/15/2023, 10:06 AM
I have an interface called LifecycleDispatcher. This interface is implemented in Android using Activity Lifecycle in iOS UiApplicatio Lifecycle. When my composeApp starts, one of the constructor dependencies is this interface. I also supply this interface implementation as a koin dependency.
Pablichjenkov
12/15/2023, 10:09 AM
Oh I see you question in decompose channel, yes that is another alternative. Use a State management library that supports lifecycle already.