Flutter Engine
The Flutter Engine
|
Public Member Functions | |
int | getHoveredObjectId () |
boolean | getAccessibleNavigation () |
AccessibilityBridge ( @NonNull View rootAccessibilityView, @NonNull AccessibilityChannel accessibilityChannel, @NonNull AccessibilityManager accessibilityManager, @NonNull ContentResolver contentResolver, @NonNull PlatformViewsAccessibilityDelegate platformViewsAccessibilityDelegate) | |
AccessibilityBridge ( @NonNull View rootAccessibilityView, @NonNull AccessibilityChannel accessibilityChannel, @NonNull AccessibilityManager accessibilityManager, @NonNull ContentResolver contentResolver, @NonNull AccessibilityViewEmbedder accessibilityViewEmbedder, @NonNull PlatformViewsAccessibilityDelegate platformViewsAccessibilityDelegate) | |
Bridge between Android's OS accessibility system and Flutter's accessibility system.
An AccessibilityBridge
requires:
View
, called the rootAccessibilityView
, which contains a Flutter UI. The rootAccessibilityView
is required at the time of
AccessibilityBridge
's instantiation and is held for the duration of
AccessibilityBridge
's lifespan. AccessibilityBridge
invokes various accessibility methods on the rootAccessibilityView
, e.g., View#onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo)
. The rootAccessibilityView
is expected to notify the AccessibilityBridge
of relevant interactions: onAccessibilityHoverEvent(MotionEvent)
, reset()
, updateSemantics(ByteBuffer, String[], ByteBuffer[])
, and updateCustomAccessibilityActions(ByteBuffer, String[])
AccessibilityChannel
that is connected to the running Flutter app. AccessibilityManager
to query and listen for accessibility settings. ContentResolver
to listen for changes to system animation settings. The AccessibilityBridge
causes Android to treat Flutter SemanticsNode
s as if they were accessible Android View
s. Accessibility requests may be sent from a Flutter widget to the Android OS, as if it were an Android View
, and accessibility events may be consumed by a Flutter widget, as if it were an Android View
. AccessibilityBridge
refers to Flutter's accessible widgets as "virtual views" and identifies them with "virtual view
IDs".
Definition at line 80 of file AccessibilityBridge.java.
|
inline |
Definition at line 416 of file AccessibilityBridge.java.
|
inline |
Definition at line 432 of file AccessibilityBridge.java.
|
inline |
Definition at line 271 of file AccessibilityBridge.java.
|
inline |
Definition at line 245 of file AccessibilityBridge.java.