PointerEvent

Event triggered when a pointing device (Mouse, Pen, Touch, etc.) interacts with a View.

Parameters

source

receiving the notification

target

where the Pointer interaction occurred

buttons

that are pressed (applicable for Mouse)

targetInteractions

active Pointers that started within the target

changedInteractions

active Pointers that changed since the last event

allInteractions

that are currently active (even those not directed at the target)

modifiers

that are pressed

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Pointers that are currently active (even those not directed at the target)

Link copied to clipboard

that are pressed (applicable for Mouse)

Link copied to clipboard

active Pointers that changed since the last event

Link copied to clipboard
Link copied to clipboard

Location of the first item in changedInteractions

Link copied to clipboard

where the Pointer interaction occurred

Link copied to clipboard

active Pointers that started within the target

Link copied to clipboard

Type of the first item in changedInteractions

Inherited properties

Link copied to clipboard

Indicates whether the event has been consumed.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Prevents the OS from handling this event. This does not affect subsequent listeners within the application.

Inherited functions

Link copied to clipboard
fun consume()

Sets an event's state to consumed. Consuming an event prevents other listeners and the OS from handling it.

Link copied to clipboard
operator fun contains(modifier: SystemInputEvent.Modifier): Boolean
operator fun contains(modifiers: Set<SystemInputEvent.Modifier>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String