public static interface PlatformViewsChannel.PlatformViewsHandler
PlatformViewsChannel
.
To register a PlatformViewsHandler
with a PlatformViewsChannel
,
see PlatformViewsChannel.setPlatformViewsHandler(PlatformViewsHandler)
.Modifier and Type | Method and Description |
---|---|
void |
clearFocus(int viewId)
Clears the focus from the platform view with a give id if it is currently focused.
|
long |
createPlatformView(PlatformViewsChannel.PlatformViewCreationRequest request)
The Flutter application would like to display a new Android
View , i.e.,
platform view. |
void |
disposePlatformView(int viewId)
The Flutter application could like dispose of an existing Android
View ,
i.e., platform view. |
void |
onTouch(PlatformViewsChannel.PlatformViewTouch touch)
The user touched a platform view within Flutter.
|
void |
resizePlatformView(PlatformViewsChannel.PlatformViewResizeRequest request,
Runnable onComplete)
The Flutter application would like to resize an existing Android
View ,
i.e., platform view. |
void |
setDirection(int viewId,
int direction)
The Flutter application would like to change the layout direction of
an existing Android
View , i.e., platform view. |
long createPlatformView(@NonNull PlatformViewsChannel.PlatformViewCreationRequest request)
View
, i.e.,
platform view.
The handler should instantiate the desired Android View
, create a new
FlutterView.SurfaceTextureRegistryEntry
within the
given Flutter execution context, and then return the new texture's ID.void disposePlatformView(int viewId)
View
,
i.e., platform view.void resizePlatformView(@NonNull PlatformViewsChannel.PlatformViewResizeRequest request, @NonNull Runnable onComplete)
View
,
i.e., platform view.void onTouch(@NonNull PlatformViewsChannel.PlatformViewTouch touch)
touch
.void setDirection(int viewId, int direction)
View
, i.e., platform view.void clearFocus(int viewId)