|
| FlutterNativeView (@NonNull Context context) |
|
| FlutterNativeView (@NonNull Context context, boolean isBackgroundView) |
|
void | detachFromFlutterView () |
|
void | destroy () |
|
DartExecutor | getDartExecutor () |
|
FlutterPluginRegistry | getPluginRegistry () |
|
void | attachViewAndActivity (FlutterView flutterView, Activity activity) |
|
boolean | isAttached () |
|
void | assertAttached () |
|
void | runFromBundle (FlutterRunArguments args) |
|
boolean | isApplicationRunning () |
|
TaskQueue | makeBackgroundTaskQueue (TaskQueueOptions options) |
|
void | send (String channel, ByteBuffer message) |
|
void | send (String channel, ByteBuffer message, BinaryReply callback) |
|
void | setMessageHandler (String channel, BinaryMessageHandler handler) |
|
void | setMessageHandler (String channel, BinaryMessageHandler handler, TaskQueue taskQueue) |
|
void | enableBufferingIncomingMessages () |
|
void | disableBufferingIncomingMessages () |
|
default TaskQueue | makeBackgroundTaskQueue () |
|
default TaskQueue | makeBackgroundTaskQueue (TaskQueueOptions options) |
|
void | send (@NonNull String channel, @Nullable ByteBuffer message) |
|
void | send (@NonNull String channel, @Nullable ByteBuffer message, @Nullable BinaryReply callback) |
|
void | setMessageHandler (@NonNull String channel, @Nullable BinaryMessageHandler handler) |
|
default void | setMessageHandler ( @NonNull String channel, @Nullable BinaryMessageHandler handler, @Nullable TaskQueue taskQueue) |
|
default void | enableBufferingIncomingMessages () |
|
default void | disableBufferingIncomingMessages () |
|
◆ FlutterNativeView() [1/2]
io.flutter.view.FlutterNativeView.FlutterNativeView |
( |
@NonNull Context |
context | ) |
|
|
inline |
◆ FlutterNativeView() [2/2]
io.flutter.view.FlutterNativeView.FlutterNativeView |
( |
@NonNull Context |
context, |
|
|
boolean |
isBackgroundView |
|
) |
| |
|
inline |
Definition at line 55 of file FlutterNativeView.java.
55 {
56 if (isBackgroundView) {
57 Log.
w(TAG,
"'isBackgroundView' is no longer supported and will be ignored");
58 }
59 mContext = context;
60 mPluginRegistry = new FlutterPluginRegistry(this, context);
63 this.dartExecutor =
new DartExecutor(mFlutterJNI, context.getAssets());
65 attach(this);
67 }
static void w(@NonNull String tag, @NonNull String message)
void addIsDisplayingFlutterUiListener(@NonNull FlutterUiDisplayListener listener)
void addEngineLifecycleListener(@NonNull EngineLifecycleListener engineLifecycleListener)
◆ assertAttached()
void io.flutter.view.FlutterNativeView.assertAttached |
( |
| ) |
|
|
inline |
◆ attachViewAndActivity()
void io.flutter.view.FlutterNativeView.attachViewAndActivity |
( |
FlutterView |
flutterView, |
|
|
Activity |
activity |
|
) |
| |
|
inline |
Definition at line 93 of file FlutterNativeView.java.
93 {
94 mFlutterView = flutterView;
95 mPluginRegistry.
attach(flutterView, activity);
96 }
void attach(FlutterView flutterView, Activity activity)
◆ destroy()
void io.flutter.view.FlutterNativeView.destroy |
( |
| ) |
|
|
inline |
Definition at line 74 of file FlutterNativeView.java.
74 {
77 mFlutterView = null;
80 applicationIsRunning = false;
81 }
void detachFromNativeAndReleaseResources()
void removeIsDisplayingFlutterUiListener(@NonNull FlutterUiDisplayListener listener)
◆ detachFromFlutterView()
void io.flutter.view.FlutterNativeView.detachFromFlutterView |
( |
| ) |
|
|
inline |
◆ disableBufferingIncomingMessages()
void io.flutter.view.FlutterNativeView.disableBufferingIncomingMessages |
( |
| ) |
|
|
inline |
◆ enableBufferingIncomingMessages()
void io.flutter.view.FlutterNativeView.enableBufferingIncomingMessages |
( |
| ) |
|
|
inline |
Enables the ability to queue messages received from Dart.
This is useful when there are pending channel handler registrations. For example, Dart may be initialized concurrently, and prior to the registration of the channel handlers. This implies that Dart may start sending messages while plugins are being registered.
Implements io.flutter.plugin.common.BinaryMessenger.
Definition at line 172 of file FlutterNativeView.java.
◆ getDartExecutor()
DartExecutor io.flutter.view.FlutterNativeView.getDartExecutor |
( |
| ) |
|
|
inline |
◆ getFlutterJNI()
FlutterJNI io.flutter.view.FlutterNativeView.getFlutterJNI |
( |
| ) |
|
|
inlinepackage |
◆ getObservatoryUri()
static String io.flutter.view.FlutterNativeView.getObservatoryUri |
( |
| ) |
|
|
inlinestatic |
◆ getPluginRegistry()
◆ getVMServiceUri()
static String io.flutter.view.FlutterNativeView.getVMServiceUri |
( |
| ) |
|
|
inlinestatic |
◆ isApplicationRunning()
boolean io.flutter.view.FlutterNativeView.isApplicationRunning |
( |
| ) |
|
|
inline |
◆ isAttached()
boolean io.flutter.view.FlutterNativeView.isAttached |
( |
| ) |
|
|
inline |
◆ makeBackgroundTaskQueue()
Creates a TaskQueue that executes the tasks serially on a background thread.
TaskQueueOptions
can be used to configure the task queue to execute tasks concurrently. Doing so can be more performant, though users need to ensure that the task handlers are thread-safe.
Implements io.flutter.plugin.common.BinaryMessenger.
Definition at line 138 of file FlutterNativeView.java.
138 {
140 }
BinaryMessenger getBinaryMessenger()
default TaskQueue makeBackgroundTaskQueue()
◆ runFromBundle()
Definition at line 106 of file FlutterNativeView.java.
106 {
107 if (
args.entrypoint ==
null) {
108 throw new AssertionError("An entrypoint must be specified");
109 }
111 if (applicationIsRunning)
112 throw new AssertionError("This Flutter engine instance is already running an application");
117 mContext.getResources().getAssets(),
118 null);
119
120 applicationIsRunning = true;
121 }
void runBundleAndSnapshotFromLibrary( @NonNull String bundlePath, @Nullable String entrypointFunctionName, @Nullable String pathToEntrypointFunction, @NonNull AssetManager assetManager, @Nullable List< String > entrypointArgs)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
◆ send() [1/2]
void io.flutter.view.FlutterNativeView.send |
( |
String |
channel, |
|
|
ByteBuffer |
message |
|
) |
| |
|
inline |
Definition at line 144 of file FlutterNativeView.java.
144 {
146 }
void send(@NonNull String channel, @Nullable ByteBuffer message)
◆ send() [2/2]
void io.flutter.view.FlutterNativeView.send |
( |
String |
channel, |
|
|
ByteBuffer |
message, |
|
|
BinaryReply |
callback |
|
) |
| |
|
inline |
Definition at line 150 of file FlutterNativeView.java.
150 {
152 Log.
d(TAG,
"FlutterView.send called on a detached view, channel=" + channel);
153 return;
154 }
155
157 }
static void d(@NonNull String tag, @NonNull String message)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ setMessageHandler() [1/2]
void io.flutter.view.FlutterNativeView.setMessageHandler |
( |
String |
channel, |
|
|
BinaryMessageHandler |
handler |
|
) |
| |
|
inline |
Definition at line 161 of file FlutterNativeView.java.
161 {
163 }
void setMessageHandler(@NonNull String channel, @Nullable BinaryMessageHandler handler)
◆ setMessageHandler() [2/2]
The documentation for this class was generated from the following file: