Halil Ozercan
03/03/2021, 2:18 PMpointerInput
but when I tried implementing my own, I got totally lost.
My first try was a quick failure because predefined detectors consume the events so they cannot be used together.
On my second attempt, I tried to write my own detector with lower level await
calls and got confused so hard.
Is there a documentation that would shine even a little light on this API?Daniel
03/03/2021, 2:23 PMDaniel
03/03/2021, 2:25 PMDaniel
03/03/2021, 2:26 PMVsevolod Ganin
03/03/2021, 3:25 PMDaniel
03/03/2021, 3:28 PMVsevolod Ganin
03/03/2021, 3:39 PMawaitLongPressOrCancellation
here in slack not long ago too! 🙂 Please file an issue to make it public if you don’t mind, I’ll definitely star it!
I suppose you don’t have to sync unless the library fixes a bug? But letting a big gap form might end up biting me...Yeah it mainly applied to alpha stages when APIs were changing rapidly. Now when it’s beta and there shouldn’t be any public API changes so you shouldn’t sync as much now. If we need something private from library then we file an issue I guess.
zhuinden
03/03/2021, 3:58 PMModifier.pointerInput {
they always open a random dangling coroutineScope {
in it and so I'd say yes, you do need a Ph.D 🤔 a BSc is not enough to get it (fact)Daniel
03/03/2021, 4:02 PMzhuinden
03/03/2021, 5:36 PMDaniel
03/03/2021, 5:37 PMHalil Ozercan
03/03/2021, 5:47 PMawaitPointerEventScope
More than one awaitPointerEventScope can run concurrently in the same PointerInputScope by using kotlinx.coroutines.launch. blocks are dispatched to in the order in which they were installed.
Halil Ozercan
03/03/2021, 5:48 PMDaniel
03/03/2021, 5:48 PMDaniel
03/03/2021, 5:50 PMHalil Ozercan
03/03/2021, 5:52 PMDaniel
03/03/2021, 5:52 PM