Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Package Functions | List of all members
io.flutter.plugin.platform.AccessibilityEventsDelegate Class Reference

Public Member Functions

boolean requestSendAccessibilityEvent ( @NonNull View embeddedView, @NonNull View eventOrigin, @NonNull AccessibilityEvent event)
 
boolean onAccessibilityHoverEvent (MotionEvent event, boolean ignorePlatformViews)
 

Package Functions

void setAccessibilityBridge (@Nullable AccessibilityBridge accessibilityBridge)
 

Detailed Description

Delegates accessibility events to the currently attached accessibility bridge if one is attached.

Definition at line 17 of file AccessibilityEventsDelegate.java.

Member Function Documentation

◆ onAccessibilityHoverEvent()

boolean io.flutter.plugin.platform.AccessibilityEventsDelegate.onAccessibilityHoverEvent ( MotionEvent  event,
boolean  ignorePlatformViews 
)
inline

Definition at line 47 of file AccessibilityEventsDelegate.java.

47 {
48 if (accessibilityBridge == null) {
49 return false;
50 }
51 return accessibilityBridge.onAccessibilityHoverEvent(event, ignorePlatformViews);
52 }
FlKeyEvent * event

◆ requestSendAccessibilityEvent()

boolean io.flutter.plugin.platform.AccessibilityEventsDelegate.requestSendAccessibilityEvent ( @NonNull View  embeddedView,
@NonNull View  eventOrigin,
@NonNull AccessibilityEvent  event 
)
inline

Delegates handling of android.view.ViewParent#requestSendAccessibilityEvent to the accessibility bridge.

This is a no-op if there is no accessibility delegate set.

This is used by embedded platform views to propagate accessibility events from their view hierarchy to the accessibility bridge.

As the embedded view doesn't have to be the only View in the embedded hierarchy (it can have child views) and the event might have been originated from any view in this hierarchy, this method gets both a reference to the embedded platform view, and a reference to the view from its hierarchy that sent the event.

Parameters
embeddedViewthe embedded platform view for which the event is delegated
eventOriginthe view in the embedded view's hierarchy that sent the event.
Returns
True if the event was sent.

Definition at line 38 of file AccessibilityEventsDelegate.java.

39 {
40 if (accessibilityBridge == null) {
41 return false;
42 }
43 return accessibilityBridge.externalViewRequestSendAccessibilityEvent(
44 embeddedView, eventOrigin, event);
45 }

◆ setAccessibilityBridge()

void io.flutter.plugin.platform.AccessibilityEventsDelegate.setAccessibilityBridge ( @Nullable AccessibilityBridge  accessibilityBridge)
inlinepackage

Definition at line 58 of file AccessibilityEventsDelegate.java.

58 {
59 this.accessibilityBridge = accessibilityBridge;
60 }

The documentation for this class was generated from the following file: