Flutter Engine
The Flutter Engine
|
#include <embedder.h>
Public Attributes | |
size_t | struct_size |
FlutterViewId | view_id |
The identifier for the view to add. This must be unique. More... | |
const FlutterWindowMetricsEvent * | view_metrics |
void * | user_data |
FlutterAddViewCallback | add_view_callback |
Definition at line 887 of file embedder.h.
FlutterAddViewCallback FlutterAddViewInfo::add_view_callback |
Called once the engine has attempted to add the view. This callback is required.
The embedder/app must not use the view until the callback is invoked with an added
value of true
.
This callback is invoked on an internal engine managed thread. Embedders must re-thread if necessary.
Definition at line 913 of file embedder.h.
size_t FlutterAddViewInfo::struct_size |
The size of this struct. Must be sizeof(FlutterAddViewInfo).
Definition at line 890 of file embedder.h.
void* FlutterAddViewInfo::user_data |
A baton that is not interpreted by the engine in any way. It will be given back to the embedder in |add_view_callback|. Embedder resources may be associated with this baton.
Definition at line 903 of file embedder.h.
FlutterViewId FlutterAddViewInfo::view_id |
The identifier for the view to add. This must be unique.
Definition at line 893 of file embedder.h.
const FlutterWindowMetricsEvent* FlutterAddViewInfo::view_metrics |
The view's properties.
The metric's |view_id| must match this struct's |view_id|.
Definition at line 898 of file embedder.h.