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

galex

08/04/2020, 7:19 AM
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

Fudge

08/04/2020, 7:37 AM
It’s because activityresultlauncher is not inline
👆 1
Or accepts a composable lambda
👆 1
g

galex

08/04/2020, 12:59 PM
Thanks!