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 AccessibilityEventBusMethods
emit
emit(event: E, args: Parameters<unknown[unknown]>): booleanDispatches an event to the appropriate per-window emitter based on the event's windowId.
Parameters
eventEargsParameters<unknown[unknown]>Returns
booleansubscribeTo
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
windowIdnumberReturns
TypedEmitter<AccessibilityEvents>Was this page helpful?