Hello, anyway to get activity’s onResume and onPau...
# compose
s
Hello, anyway to get activity’s onResume and onPause state in a Compose Screen? Having issues with exoplayer.
When I start playing a video in exoplayer and put my app in background the sound in the video is still playing. I want to somehow pause exoplayer in this state and play the video again the app comes to foreground.
i
Handling Lifecycle events is the exact example in the docs for `DisposableEffect`: https://developer.android.com/jetpack/compose/side-effects#disposableeffect
196 Views