Flutter Engine
The Flutter Engine
PlatformViewsAccessibilityDelegate.java
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package io.flutter.plugin.platform;
6
7import android.view.View;
8import androidx.annotation.NonNull;
9import androidx.annotation.Nullable;
10import io.flutter.view.AccessibilityBridge;
11
12/** Facilitates interaction between the accessibility bridge and embedded platform views. */
14 /**
15 * Returns the root of the view hierarchy for the platform view with the requested id, or null if
16 * there is no corresponding view.
17 */
18 @Nullable
19 View getPlatformViewById(int viewId);
20
21 /** Returns true if the platform view uses virtual displays. */
22 boolean usesVirtualDisplay(int id);
23
24 /**
25 * Attaches an accessibility bridge for this platform views accessibility delegate.
26 *
27 * <p>Accessibility events originating in platform views belonging to this delegate will be
28 * delegated to this accessibility bridge.
29 */
30 void attachAccessibilityBridge(@NonNull AccessibilityBridge accessibilityBridge);
31
32 /**
33 * Detaches the current accessibility bridge.
34 *
35 * <p>Any accessibility events sent by platform views belonging to this delegate will be ignored
36 * until a new accessibility bridge is attached.
37 */
39}
void attachAccessibilityBridge(@NonNull AccessibilityBridge accessibilityBridge)