Function

awaitFirstDown

awaitFirstDown

Deprecated

Maintained for binary compatibility. Use version with PointerEventPass instead.

Source set: Common
suspend fun AwaitPointerEventScope.awaitFirstDown(
    requireUnconsumed: Boolean = true
): PointerInputChange

awaitFirstDown

Source set: Common
suspend fun AwaitPointerEventScope.awaitFirstDown(
    requireUnconsumed: Boolean = true,
    pass: PointerEventPass = PointerEventPass.Main,
): PointerInputChange

Reads events until the first down is received in the given pass. If requireUnconsumed is true and the first down is already consumed in the pass, that gesture is ignored.

Last updated: