Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
plugin
platform
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
5
package
io.flutter.plugin.platform;
6
7
import
android
.view.View;
8
import
androidx.annotation.NonNull;
9
import
androidx.annotation.Nullable;
10
import
io.flutter.view.AccessibilityBridge;
11
12
/** Facilitates interaction between the accessibility bridge and embedded platform views. */
13
public
interface
PlatformViewsAccessibilityDelegate
{
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
*/
38
void
detachAccessibilityBridge
();
39
}
io.flutter.view.AccessibilityBridge
Definition:
AccessibilityBridge.java:80
io.flutter.plugin.platform.PlatformViewsAccessibilityDelegate
Definition:
PlatformViewsAccessibilityDelegate.java:13
io.flutter.plugin.platform.PlatformViewsAccessibilityDelegate.getPlatformViewById
View getPlatformViewById(int viewId)
io.flutter.plugin.platform.PlatformViewsAccessibilityDelegate.attachAccessibilityBridge
void attachAccessibilityBridge(@NonNull AccessibilityBridge accessibilityBridge)
io.flutter.plugin.platform.PlatformViewsAccessibilityDelegate.usesVirtualDisplay
boolean usesVirtualDisplay(int id)
io.flutter.plugin.platform.PlatformViewsAccessibilityDelegate.detachAccessibilityBridge
void detachAccessibilityBridge()
android
Definition:
BitmapRegionDecoder.cpp:14
Generated on Sun Jun 23 2024 21:55:10 for Flutter Engine by
1.9.4