https://kotlinlang.org logo
#compose
Title
# compose
d

Divyansh Kushwaha

03/07/2023, 7:31 PM
How can I release an audioRecorder when navigated back (using compose navigation) from a compose screen? In fragments or activity we used to do in lifecycle methods.
Found the answer, it is as simple as calling release in
androidx.activity.compose.BackHandler
side-effect.
2 Views