Flutter Engine
The Flutter Engine
|
Public Member Functions | |
CountingPlatformView (Context context) | |
void | dispose () |
View | getView () |
void | onFlutterViewAttached (View flutterView) |
void | onFlutterViewDetached () |
Public Member Functions inherited from io.flutter.plugin.platform.PlatformView | |
default void | onFlutterViewAttached (@NonNull View flutterView) |
default void | onInputConnectionLocked () |
default void | onInputConnectionUnlocked () |
Public Attributes | |
int | disposeCalls = 0 |
int | attachCalls = 0 |
int | detachCalls = 0 |
Static Package Attributes | |
static final String | VIEW_TYPE_ID = "CountingPlatformView" |
Definition at line 73 of file PlatformViewsControllerTest.java.
|
inline |
Definition at line 77 of file PlatformViewsControllerTest.java.
|
inline |
Dispose this platform view.
The PlatformView
object is unusable after this method is called.
Plugins implementing PlatformView
must clear all references to the View object and the PlatformView after this method is called. Failing to do so will result in a memory leak.
References related to the Android View
attached in onFlutterViewAttached(View)
must be released in dispose()
to avoid memory leaks.
Implements io.flutter.plugin.platform.PlatformView.
Definition at line 86 of file PlatformViewsControllerTest.java.
|
inline |
Returns the Android view to be embedded in the Flutter hierarchy.
Implements io.flutter.plugin.platform.PlatformView.
Definition at line 93 of file PlatformViewsControllerTest.java.
|
inline |
Definition at line 98 of file PlatformViewsControllerTest.java.
|
inline |
Called by the io.flutter.embedding.engine.FlutterEngine
that owns this
when the Android
PlatformViewView
responsible for rendering a Flutter UI is detached and disassociated from the io.flutter.embedding.engine.FlutterEngine
.
This means that our associated io.flutter.embedding.engine.FlutterEngine
no longer has a rendering surface, or a user interaction surface of any kind.
This platform view must release any references related to the Android View
that was provided in onFlutterViewAttached(View)
.
Implements io.flutter.plugin.platform.PlatformView.
Definition at line 103 of file PlatformViewsControllerTest.java.
int io.flutter.plugin.platform.PlatformViewsControllerTest.CountingPlatformView.attachCalls = 0 |
Definition at line 82 of file PlatformViewsControllerTest.java.
int io.flutter.plugin.platform.PlatformViewsControllerTest.CountingPlatformView.detachCalls = 0 |
Definition at line 83 of file PlatformViewsControllerTest.java.
int io.flutter.plugin.platform.PlatformViewsControllerTest.CountingPlatformView.disposeCalls = 0 |
Definition at line 81 of file PlatformViewsControllerTest.java.
|
staticpackage |
Definition at line 74 of file PlatformViewsControllerTest.java.