AwaitPointerEventScope
interface AwaitPointerEventScope : Density
androidx.compose.ui.input.pointer.AwaitPointerEventScope |
Receiver scope for awaiting pointer events in a call to PointerInputScope.awaitPointerEventScope.
This is a restricted suspension scope. Code in this scope is always called undispatched and may only suspend for calls to awaitPointerEvent. These functions resume synchronously and the caller may mutate the result before the next await call to affect the next stage of the input processing pipeline.
Summary
Public methods | |
---|---|
abstract suspend PointerEvent |
awaitPointerEvent(pass: PointerEventPass = PointerEventPass.Main) Suspend until a PointerEvent is reported to the specified input pass. |
Inherited functions | |
---|---|
Extension functions | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From androidx.compose.foundation.gestures
|