Flutter Engine
The Flutter Engine
|
Public Member Functions | |
Display | getDefaultDisplay () |
void | removeViewImmediate (View view) |
void | addView (View view, ViewGroup.LayoutParams params) |
void | updateViewLayout (View view, ViewGroup.LayoutParams params) |
void | removeView (View view) |
WindowMetrics | getCurrentWindowMetrics () |
WindowMetrics | getMaximumWindowMetrics () |
boolean | isCrossWindowBlurEnabled () |
void | addCrossWindowBlurEnabledListener (@NonNull Consumer< Boolean > listener) |
void | addCrossWindowBlurEnabledListener ( @NonNull Executor executor, @NonNull Consumer< Boolean > listener) |
void | removeCrossWindowBlurEnabledListener (@NonNull Consumer< Boolean > listener) |
Package Functions | |
SingleViewWindowManager (WindowManager delegate, SingleViewFakeWindowViewGroup fakeWindowViewGroup) | |
Package Attributes | |
final WindowManager | delegate |
SingleViewFakeWindowViewGroup | fakeWindowRootView |
A static proxy handler for a WindowManager with custom overrides.
The presentation's window manager delegates all calls to the default window manager. WindowManager::addView calls triggered by views that are attached to the virtual display are crashing (see: https://github.com/flutter/flutter/issues/20714). This was triggered when selecting text in an embedded WebView (as the selection handles are implemented as popup windows).
This static proxy overrides the addView, removeView, removeViewImmediate, and updateViewLayout methods to prevent these crashes, and forwards all other calls to the delegate.
This is an abstract class because some clients of Flutter compile the Android embedding with the Android System SDK, which has additional abstract methods that need to be overriden.
Definition at line 35 of file SingleViewWindowManager.java.
|
inlinepackage |
Definition at line 41 of file SingleViewWindowManager.java.
|
inline |
Definition at line 118 of file SingleViewWindowManager.java.
|
inline |
Definition at line 112 of file SingleViewWindowManager.java.
|
inline |
Definition at line 64 of file SingleViewWindowManager.java.
|
inline |
Definition at line 93 of file SingleViewWindowManager.java.
|
inline |
Definition at line 49 of file SingleViewWindowManager.java.
|
inline |
Definition at line 100 of file SingleViewWindowManager.java.
|
inline |
Definition at line 106 of file SingleViewWindowManager.java.
|
inline |
Definition at line 125 of file SingleViewWindowManager.java.
|
inline |
Definition at line 82 of file SingleViewWindowManager.java.
|
inline |
Definition at line 54 of file SingleViewWindowManager.java.
|
inline |
Definition at line 73 of file SingleViewWindowManager.java.
|
package |
Definition at line 38 of file SingleViewWindowManager.java.
|
package |
Definition at line 39 of file SingleViewWindowManager.java.