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

Landry Norris

07/22/2022, 4:46 PM
I’ve run into a build error I don’t quite understand. Whenever I use
PointerInputChange#isConsumed
, I get an error
This API is experimental and is likely to change in the future.
I don’t see any errors in the IDE, and opting in to ExperimentalComposeApi and ExperimentalMaterialApi don’t fix it. Looking at the source, I also don’t see it marked as experimental.
i

Ian G. Clifton

07/23/2022, 12:33 AM
I think you have to opt in to ExperimentalComposeUiApi to use PointerInputChange
i

Ian Lake

07/23/2022, 2:16 AM
l

Landry Norris

07/25/2022, 2:06 PM
The ExperimentalComposeUiApi annotation worked. I wonder why the IDE didn’t mark it as required or suggest it.
3 Views