Version:
interface

AccessibilityEventBus

An AccessibilityEventBus routes accessibility events to per-window emitters.
Instead of broadcasting all events to all subscribers, windows subscribe
by ID and only receive events for their own window.

typescript
interface AccessibilityEventBus

Methods

emit

emit(event: E, args: Parameters<unknown[unknown]>): boolean

Dispatches an event to the appropriate per-window emitter based on the event's windowId.

Parameters

eventE
argsParameters<unknown[unknown]>

Returns

boolean

subscribeTo

subscribeTo(windowId: number): TypedEmitter<AccessibilityEvents>

Returns a per-window emitter that only receives events for the given window ID.
Creates the emitter on first subscription.

Parameters

windowIdnumber

Was this page helpful?