Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | createForPlatformViewLayer (@NonNull PlatformViewCreationRequest request) |
long | createForTextureLayer (@NonNull PlatformViewCreationRequest request) |
void | dispose (int viewId) |
void | resize ( @NonNull PlatformViewResizeRequest request, @NonNull PlatformViewBufferResized onComplete) |
void | offset (int viewId, double top, double left) |
void | onTouch (@NonNull PlatformViewTouch touch) |
void | setDirection (int viewId, int direction) |
void | clearFocus (int viewId) |
void | synchronizeToNativeViewHierarchy (boolean yes) |
Static Public Attributes | |
static final long | NON_TEXTURE_FALLBACK = -2 |
Handler that receives platform view messages sent from Flutter to Android through a given PlatformViewsChannel
.
To register a PlatformViewsHandler
with a PlatformViewsChannel
, see PlatformViewsChannel#setPlatformViewsHandler(PlatformViewsHandler)
.
Definition at line 288 of file PlatformViewsChannel.java.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.clearFocus | ( | int | viewId | ) |
Clears the focus from the platform view with a give id if it is currently focused.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.createForPlatformViewLayer | ( | @NonNull PlatformViewCreationRequest | request | ) |
The Flutter application would like to display a new Android View
, i.e., platform view.
The Android View is added to the view hierarchy. This view is rendered in the Flutter framework by a PlatformViewLayer.
request | The metadata sent from the framework. |
long io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.createForTextureLayer | ( | @NonNull PlatformViewCreationRequest | request | ) |
The Flutter application would like to display a new Android View
, i.e., platform view.
The Android View is added to the view hierarchy. This view is rendered in the Flutter framework by a TextureLayer.
request | The metadata sent from the framework. |
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.dispose | ( | int | viewId | ) |
The Flutter application would like to dispose of an existing Android View
.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.offset | ( | int | viewId, |
double | top, | ||
double | left | ||
) |
The Flutter application would like to change the offset of an existing Android View
.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.onTouch | ( | @NonNull PlatformViewTouch | touch | ) |
The user touched a platform view within Flutter.
Touch data is reported in touch
.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.resize | ( | @NonNull PlatformViewResizeRequest | request, |
@NonNull PlatformViewBufferResized | onComplete | ||
) |
The Flutter application would like to resize an existing Android View
.
request | The request to resize the platform view. |
onComplete | Once the resize is completed, this is the handler to notify the size of the platform view buffer. |
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.setDirection | ( | int | viewId, |
int | direction | ||
) |
The Flutter application would like to change the layout direction of an existing Android View
, i.e., platform view.
void io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewsHandler.synchronizeToNativeViewHierarchy | ( | boolean | yes | ) |
Whether the render surface of FlutterView
should be converted to a
when a
FlutterImageViewPlatformView
is added.
This is done to syncronize the rendering of the PlatformView and the FlutterView. Defaults to true.
|
static |
Definition at line 296 of file PlatformViewsChannel.java.