Flutter Engine
The Flutter Engine
|
Public Member Functions | |
PlatformViewWrapper (@NonNull Context context) | |
PlatformViewWrapper ( @NonNull Context context, @NonNull PlatformViewRenderTarget renderTarget) | |
void | setTouchProcessor (@Nullable AndroidTouchProcessor newTouchProcessor) |
void | setLayoutParams (@NonNull FrameLayout.LayoutParams params) |
void | resizeRenderTarget (int width, int height) |
int | getRenderTargetWidth () |
int | getRenderTargetHeight () |
void | release () |
boolean | onInterceptTouchEvent (@NonNull MotionEvent event) |
boolean | requestSendAccessibilityEvent (View child, AccessibilityEvent event) |
void | onDescendantInvalidated (@NonNull View child, @NonNull View target) |
ViewParent | invalidateChildInParent (int[] location, Rect dirty) |
void | draw (Canvas canvas) |
boolean | onTouchEvent (@NonNull MotionEvent event) |
ViewTreeObserver.OnGlobalFocusChangeListener | getActiveFocusListener () |
void | setOnDescendantFocusChangeListener (@NonNull OnFocusChangeListener userFocusListener) |
void | unsetOnDescendantFocusChangeListener () |
Wraps a platform view to intercept gestures and project this view onto a PlatformViewRenderTarget
.
An Android platform view is composed by the engine using a TextureLayer
. The view is embeded to the Android view hierarchy like a normal view, but it's projected onto a PlatformViewRenderTarget
, so it can be efficiently composed by the engine.
Since the view is in the Android view hierarchy, keyboard and accessibility interactions behave normally.
Definition at line 44 of file PlatformViewWrapper.java.
|
inline |
Definition at line 56 of file PlatformViewWrapper.java.
|
inline |
Definition at line 61 of file PlatformViewWrapper.java.
|
inline |
Definition at line 162 of file PlatformViewWrapper.java.
|
inline |
Definition at line 217 of file PlatformViewWrapper.java.
|
inline |
Definition at line 111 of file PlatformViewWrapper.java.
|
inline |
Definition at line 104 of file PlatformViewWrapper.java.
|
inline |
Definition at line 155 of file PlatformViewWrapper.java.
|
inline |
Used on Android O+, invalidateChildInParent
used for previous versions.
Definition at line 149 of file PlatformViewWrapper.java.
|
inline |
Definition at line 127 of file PlatformViewWrapper.java.
|
inline |
Definition at line 190 of file PlatformViewWrapper.java.
|
inline |
Releases resources.
Definition at line 119 of file PlatformViewWrapper.java.
|
inline |
Definition at line 132 of file PlatformViewWrapper.java.
|
inline |
Definition at line 98 of file PlatformViewWrapper.java.
|
inline |
Sets the layout parameters for this view.
params | The new parameters. |
Definition at line 91 of file PlatformViewWrapper.java.
|
inline |
Definition at line 221 of file PlatformViewWrapper.java.
|
inline |
Sets the touch processor that allows to intercept gestures.
newTouchProcessor | The touch processor. |
Definition at line 82 of file PlatformViewWrapper.java.
|
inline |
Definition at line 237 of file PlatformViewWrapper.java.