Flutter Engine
The Flutter Engine
Public Attributes | List of all members
FlutterAddViewInfo Struct Reference

#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 FlutterWindowMetricsEventview_metrics
 
void * user_data
 
FlutterAddViewCallback add_view_callback
 

Detailed Description

Definition at line 887 of file embedder.h.

Member Data Documentation

◆ add_view_callback

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.

◆ struct_size

size_t FlutterAddViewInfo::struct_size

The size of this struct. Must be sizeof(FlutterAddViewInfo).

Definition at line 890 of file embedder.h.

◆ user_data

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.

◆ view_id

FlutterViewId FlutterAddViewInfo::view_id

The identifier for the view to add. This must be unique.

Definition at line 893 of file embedder.h.

◆ view_metrics

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.


The documentation for this struct was generated from the following file: