Should we not be able to call `launchInComposition...
# compose
g
Should we not be able to call
launchInComposition() {}
inside a
@Composable
extension function? The extension function looks like the following:
Copy code
@Composable
fun <I, O> ActivityResultRegistry.activityResultLauncher(): : ActivityResultLauncher<I> {}
But inside of it inside another
Composable
, I am unable to call
launchInComposition
(see screenshot).
f
It’s because activityresultlauncher is not inline
👆 1
Or accepts a composable lambda
👆 1
g
Thanks!