Join us for ⁠#Android11: The Beta Launch Show on June 3!

androidx.ui.testutils

Top-level functions summary

PointerInputChange
down(id: Long, duration: Duration = Duration.Zero, x: Float = 0f, y: Float = 0f)

Extension functions summary

For kotlin.Function2
Unit

Simulates the dispatching of event to this on all PointerEventPasses in their standard order.

Unit

Simulates the dispatching of event to this on all PointerEventPasses in their standard order.

For kotlin.Function3
PointerInputChange
PointerInputHandler.invokeOverAllPasses(pointerInputChanges: PointerInputChange, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

List<PointerInputChange>
PointerInputHandler.invokeOverAllPasses(vararg pointerInputChanges: PointerInputChange, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

PointerInputChange
PointerInputHandler.invokeOverPasses(pointerInputChange: PointerInputChange, pointerEventPass: PointerEventPass, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

List<PointerInputChange>
PointerInputHandler.invokeOverPasses(vararg pointerInputChanges: PointerInputChange, pointerEventPass: PointerEventPass, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

PointerInputChange
PointerInputHandler.invokeOverPasses(pointerInputChange: PointerInputChange, vararg pointerEventPasses: PointerEventPass, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

List<PointerInputChange>
PointerInputHandler.invokeOverPasses(pointerInputChanges: List<PointerInputChange>, pointerEventPasses: List<PointerEventPass>, size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx))

For PointerInputChange
PointerInputChange
PointerInputChange.consume(dx: Float = 0f, dy: Float = 0f, downChange: Boolean = false)

PointerInputChange
PointerInputChange.moveBy(duration: Duration, dx: Float = 0f, dy: Float = 0f)

PointerInputChange
PointerInputChange.moveTo(duration: Duration, x: Float = 0f, y: Float = 0f)

PointerInputChange

Top-level functions

down

fun down(
    id: Long,
    duration: Duration = Duration.Zero,
    x: Float = 0f,
    y: Float = 0f
): PointerInputChange

Extension functions

consume

fun PointerInputChange.consume(
    dx: Float = 0f,
    dy: Float = 0f,
    downChange: Boolean = false
): PointerInputChange

invokeOverAllPasses

fun ((CustomEvent, PointerEventPass) -> Unit).invokeOverAllPasses(event: CustomEvent): Unit

Simulates the dispatching of event to this on all PointerEventPasses in their standard order.

Parameters
event: CustomEvent The event to dispatch.

invokeOverAllPasses

fun PointerInputHandler.invokeOverAllPasses(
    pointerInputChanges: PointerInputChange,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): PointerInputChange

invokeOverAllPasses

fun PointerInputHandler.invokeOverAllPasses(
    vararg pointerInputChanges: PointerInputChange,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): List<PointerInputChange>

invokeOverPasses

fun ((CustomEvent, PointerEventPass) -> Unit).invokeOverPasses(
    event: CustomEvent,
    pointerEventPasses: List<PointerEventPass>
): Unit

Simulates the dispatching of event to this on all PointerEventPasses in their standard order.

Parameters
event: CustomEvent The event to dispatch.
pointerEventPasses: List<PointerEventPass> The PointerEventPasses to pass to each call to this.

invokeOverPasses

fun PointerInputHandler.invokeOverPasses(
    pointerInputChange: PointerInputChange,
    pointerEventPass: PointerEventPass,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): PointerInputChange

invokeOverPasses

fun PointerInputHandler.invokeOverPasses(
    vararg pointerInputChanges: PointerInputChange,
    pointerEventPass: PointerEventPass,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): List<PointerInputChange>

invokeOverPasses

fun PointerInputHandler.invokeOverPasses(
    pointerInputChange: PointerInputChange,
    vararg pointerEventPasses: PointerEventPass,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): PointerInputChange

invokeOverPasses

fun PointerInputHandler.invokeOverPasses(
    pointerInputChanges: List<PointerInputChange>,
    pointerEventPasses: List<PointerEventPass>,
    size: IntPxSize = IntPxSize(Int.MAX_VALUE.ipx, Int.MAX_VALUE.ipx)
): List<PointerInputChange>

moveBy

fun PointerInputChange.moveBy(
    duration: Duration,
    dx: Float = 0f,
    dy: Float = 0f
): PointerInputChange

moveTo

fun PointerInputChange.moveTo(
    duration: Duration,
    x: Float = 0f,
    y: Float = 0f
): PointerInputChange