IndirectPointerEvent


An IndirectPointerEvent represents a pointer input event, where the pointer positions do not correspond to a position on the screen. Instead, the position of the pointer corresponds to the position on the input device, such as a touchpad.

Since IndirectPointerEvents do not have a position on the screen, they cannot be dispatched through hit-testing and instead they are dispatched through the focus tree, similar to key input. Only the focused component and any of its parents will receive an IndirectPointerEvent.

This event differs from a PointerEvent as it does not necessitate an existence of a pointer. If an event were to have an associated pointer, they will be routed to through PointerEvent.

Summary

Public properties

List<IndirectPointerInputChange>

The list of individual pointer changes in this event.

Cmn
IndirectPointerEventPrimaryDirectionalMotionAxis

Main coordinate axis to use for movement.

Cmn
IndirectPointerEventType

The reason the IndirectPointerEvent was sent.

Cmn

Extension properties

MotionEvent

Returns the underlying MotionEvent for additional information and cross module testing.

android

Public properties

changes

val changesList<IndirectPointerInputChange>

The list of individual pointer changes in this event.

primaryDirectionalMotionAxis

val primaryDirectionalMotionAxisIndirectPointerEventPrimaryDirectionalMotionAxis

Main coordinate axis to use for movement.

type

val typeIndirectPointerEventType

The reason the IndirectPointerEvent was sent.

Extension properties

nativeEvent

val IndirectPointerEvent.nativeEventMotionEvent

Returns the underlying MotionEvent for additional information and cross module testing.