fuchsia.ui.input.accessibility

PROTOCOLS

PointerEventRegistry

Defined in fuchsia.ui.input.accessibility/accessibility.fidl

PointerEventRegistration allows an accessibility service to register a pointer event listener, so that it can intercept pointer events before they reach clients.

Register

Registers a listener to start receiving incoming pointer events. For now, only one listener is allowed and the first to register is honored.

Request

NameType
pointer_event_listener PointerEventListener

PointerEventListener

Defined in fuchsia.ui.input.accessibility/accessibility.fidl

A PointerEventListener receives pointer events and decides to consume them or not.

OnEvent

Sends a PointerEvent to an accessibility service. A callback is return to indicate whether the pointer event was consumed / rejected for a particular stream of pointer events related to a device_id and a pointer_id.

Request

NameType
pointer_event PointerEvent

Response

NameType
device_id uint32
pointer_id uint32
handled EventHandling

ENUMS

EventHandling

Type: uint32

Defined in fuchsia.ui.input.accessibility/accessibility.fidl

Possible ways an accessibility listener can process pointer events.

NameValueDescription
CONSUMED 1
REJECTED 2

TABLES

PointerEvent

Defined in fuchsia.ui.input.accessibility/accessibility.fidl

A PointerEvent is a privileged pointer event that has local view and global screen coordinates as well as some metadata about the event type.

OrdinalNameTypeDescription
1 event_time uint64 Time the event was delivered. The time is in nanoseconds and corresponds to the uptime of the machine.
2 device_id uint32 ID of the device that captured this event.
3 pointer_id uint32 ID of the pointer that identifies this event.
4 type fuchsia.ui.input/PointerEventType Type of this event, e.g. touch, mouse, etc.
5 phase fuchsia.ui.input/PointerEventPhase Phase of this event, e.g. add, down, etc.
6 global_point fuchsia.math/PointF The point of this pointer event in global screen coordinates.
7 viewref_koid uint64 The viewref koid of the top most view hit for this pointer event. This field is set to `ZX_KOID_INVALID` when there is no view hit and `local_point` is undefined.
8 local_point fuchsia.math/PointF The point of this pointer event in local view coordinates.