Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformOverlayView Class Reference
Inheritance diagram for io.flutter.plugin.platform.PlatformOverlayView:

Public Member Functions

 PlatformOverlayView ( @NonNull Context context, int width, int height, @NonNull AccessibilityEventsDelegate accessibilityDelegate)
 
 PlatformOverlayView (@NonNull Context context)
 
 PlatformOverlayView (@NonNull Context context, @NonNull AttributeSet attrs)
 
boolean onHoverEvent (@NonNull MotionEvent event)
 

Detailed Description

A host view for Flutter content displayed over a platform view.

Definition at line 15 of file PlatformOverlayView.java.

Constructor & Destructor Documentation

◆ PlatformOverlayView() [1/3]

io.flutter.plugin.platform.PlatformOverlayView.PlatformOverlayView ( @NonNull Context  context,
int  width,
int  height,
@NonNull AccessibilityEventsDelegate  accessibilityDelegate 
)
inline

Definition at line 18 of file PlatformOverlayView.java.

22 {
23 super(context, width, height, FlutterImageView.SurfaceKind.overlay);
24 this.accessibilityDelegate = accessibilityDelegate;
25 }
int32_t height
int32_t width

◆ PlatformOverlayView() [2/3]

io.flutter.plugin.platform.PlatformOverlayView.PlatformOverlayView ( @NonNull Context  context)
inline

Definition at line 27 of file PlatformOverlayView.java.

27 {
28 this(context, 1, 1, null);
29 }

◆ PlatformOverlayView() [3/3]

io.flutter.plugin.platform.PlatformOverlayView.PlatformOverlayView ( @NonNull Context  context,
@NonNull AttributeSet  attrs 
)
inline

Definition at line 31 of file PlatformOverlayView.java.

31 {
32 this(context, 1, 1, null);
33 }

Member Function Documentation

◆ onHoverEvent()

boolean io.flutter.plugin.platform.PlatformOverlayView.onHoverEvent ( @NonNull MotionEvent  event)
inline

Definition at line 36 of file PlatformOverlayView.java.

36 {
37 // This view doesn't have any accessibility information of its own, but anything drawn in
38 // this view is visible above the platform view it is overlaying, so should respond to
39 // accessibility exploration events. Forward those events to the accessibility delegate in
40 // a special mode that will stop as soon as it reaches a platform view, so that it will not
41 // find widgets that behind the platform view. If no such widget is found, treat the event
42 // as unhandled so that it can fall through to the platform view.
43 if (accessibilityDelegate != null
44 && accessibilityDelegate.onAccessibilityHoverEvent(event, true)) {
45 return true;
46 }
47 return super.onHoverEvent(event);
48 }
boolean onAccessibilityHoverEvent(MotionEvent event, boolean ignorePlatformViews)
FlKeyEvent * event

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