Project: /_project.yaml Book: /_book.yaml

fuchsia.ui.input.accessibility

PROTOCOLS

PointerEventRegistry {:#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 {:#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

PointerEventListener {:#PointerEventListener}

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

A PointerEventListener receives pointer events and decides to consume them or not. TODO(fxb/36429): Investigate flow control mechanisms for a11y input events.

OnEvent {:#OnEvent}

Sends a PointerEvent to an accessibility service. An event is returned at any time to indicate whether the pointer event stream was consumed / rejected for a particular stream of pointer events related to a device_id and a pointer_id. A stream is a sequence of pointer events starting with an event with phase DOWN, followed by any number of MOVE, ending in an UP phase event. The event can arrive while the stream is in progress or when it has already finished. The resulting behavior depends on how it was handled, please see EventHandling above.

Request

OnStreamHandled {:#OnStreamHandled}

Response

ENUMS

EventHandling {:#EventHandling}

Type: uint32

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

Possible ways an accessibility listener can process pointer events.

TABLES

PointerEvent {:#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.