Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformOverlayView Class Reference
Inheritance diagram for io.flutter.plugin.platform.PlatformOverlayView:
io.flutter.embedding.android.FlutterImageView io.flutter.embedding.engine.renderer.RenderSurface

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)
 
- Public Member Functions inherited from io.flutter.embedding.android.FlutterImageView
ImageReader getImageReader ()
 
 FlutterImageView (@NonNull Context context, int width, int height, SurfaceKind kind)
 
 FlutterImageView (@NonNull Context context)
 
 FlutterImageView (@NonNull Context context, @NonNull AttributeSet attrs)
 
Surface getSurface ()
 
FlutterRenderer getAttachedRenderer ()
 
void attachToRenderer (@NonNull FlutterRenderer flutterRenderer)
 
void detachFromRenderer ()
 
void pause ()
 
void resume ()
 
boolean acquireLatestImage ()
 
void resizeIfNeeded (int width, int height)
 
void closeImageReader ()
 
FlutterRenderer getAttachedRenderer ()
 
void attachToRenderer (@NonNull FlutterRenderer renderer)
 
void detachFromRenderer ()
 
void pause ()
 
void resume ()
 

Additional Inherited Members

- Protected Member Functions inherited from io.flutter.embedding.android.FlutterImageView
void onDraw (Canvas canvas)
 
void onSizeChanged (int width, int height, int oldWidth, int oldHeight)
 
- Package Functions inherited from io.flutter.embedding.android.FlutterImageView
 FlutterImageView ( @NonNull Context context, @NonNull ImageReader imageReader, SurfaceKind kind)
 

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 }
FlutterImageView(@NonNull Context context, int width, int height, SurfaceKind kind)
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: