Package io.flutter.plugin.platform
Class PlatformViewsController2
java.lang.Object
io.flutter.plugin.platform.PlatformViewsController2
- All Implemented Interfaces:
PlatformViewsAccessibilityDelegate
Manages platform views.
Each FlutterEngine has a single platform views controller.
A platform views controller can be attached to at most one Flutter view.
[PlatformViewsController2] is intentionally a different class from [PlatformViewsController] in
order to separate out the complexity of the first 3 platform view implementations (Virtual
Display, Texture Layer, and Hybrid Composition). From the 4th platform view implementation,
Hybrid Composition++.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidattach(Context context, DartExecutor dartExecutor) Attaches this platform views controller to its input and output channels.voidattachAccessibilityBridge(AccessibilityBridge accessibilityBridge) Attaches an accessibility bridge for this platform views accessibility delegate.voidattachTextInputPlugin(TextInputPlugin textInputPlugin) Attaches this controller to a text input plugin.voidattachToFlutterRenderer(FlutterRenderer flutterRenderer) voidattachToView(FlutterView newFlutterView) Attaches the controller to aFlutterView.voidvoiddetach()Detaches this platform views controller.voidDetaches the current accessibility bridge.voidDetaches the controller fromFlutterView.voidDetaches this controller from the currently attached text input plugin.voiddisposePlatformView(int viewId) Disposes a singlegetPlatformViewById(int viewId) Returns the root of the view hierarchy for the platform view with the requested id, or null if there is no corresponding view.voidbooleanvoidInvoked when theFlutterEnginethat owns thisPlatformViewsControllerdetaches from JNI.void