#import <FlutterPlatformViewsController.h>
Instance Methods | |
(instancetype) | - NS_DESIGNATED_INITIALIZER |
(void) | - registerViewFactory:withId:gestureRecognizersBlockingPolicy: |
set the factory used to construct embedded UI Views. More... | |
(void) | - beginFrameWithSize: |
Mark the beginning of a frame and record the size of the onscreen. More... | |
(void) | - cancelFrame |
Cancel the current frame, indicating that no platform views are composited. More... | |
(void) | - prerollCompositeEmbeddedView:withParams: |
Record a platform view in the layer tree to be rendered, along with the positioning and mutator parameters. More... | |
(FlutterTouchInterceptingView *) | - flutterTouchInterceptingViewForId: |
Returns theFlutterTouchInterceptingView with the provided view_id. More... | |
(flutter::PostPrerollResult) | - postPrerollActionWithThreadMerger:impellerEnabled: |
Determine if thread merging is required after prerolling platform views. More... | |
(void) | - endFrameWithResubmit:threadMerger:impellerEnabled: |
Mark the end of a compositor frame. More... | |
(flutter::DlCanvas *) | - compositeEmbeddedViewWithId: |
Returns the Canvas for the overlay slice for the given platform view. More... | |
(void) | - reset |
Discards all platform views instances and auxiliary resources. More... | |
(BOOL) | - submitFrame:withIosContext:grContext: |
Encode rendering for the Flutter overlay views and queue up perform platform view mutations. More... | |
(void) | - onMethodCall:result: |
Handler for platform view message channels. More... | |
(long) | - firstResponderPlatformViewId |
Returns the platform view id if the platform view (or any of its descendant view) is the first responder. More... | |
(void) | - pushFilterToVisitedPlatformViews:withRect: |
Pushes backdrop filter mutation to the mutator stack of each visited platform view. More... | |
(void) | - pushVisitedPlatformViewId: |
Pushes the view id of a visted platform view to the list of visied platform views. More... | |
(size_t) | - embeddedViewCount |
(UIView *_Nullable) | - platformViewForId: |
(void) | - compositeView:withParams: |
(const flutter::EmbeddedViewParams &) | - compositionParamsForView: |
Properties | |
const fml::RefPtr< fml::TaskRunner > & | taskRunner |
The task runner used to post rendering tasks to the platform thread. More... | |
UIView *_Nullable | flutterView |
The flutter view. More... | |
UIViewController< FlutterViewResponder > *_Nullable | flutterViewController |
The flutter view controller. More... | |
Definition at line 31 of file FlutterPlatformViewsController.h.
- (void) beginFrameWithSize: | (SkISize) | frameSize |
Mark the beginning of a frame and record the size of the onscreen.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) cancelFrame |
Cancel the current frame, indicating that no platform views are composited.
Additionally, reverts the composition order to its original state at the beginning of the frame.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (DlCanvas *) FlutterPlatformViewsController: | (int64_t) | viewId |
Returns the Canvas for the overlay slice for the given platform view.
Called from the raster thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) compositeView: | (int64_t) | viewId | |
withParams: | (const flutter::EmbeddedViewParams &) | params | |
Provided by category FlutterPlatformViewsController(Testing).
- (const EmbeddedViewParams& FlutterPlatformViewsController(Testing)): | (int64_t) | viewId |
Provided by category FlutterPlatformViewsController(Testing).
- (size_t) embeddedViewCount |
Provided by category FlutterPlatformViewsController(Testing).
- (void) endFrameWithResubmit: | (BOOL) | shouldResubmitFrame | |
threadMerger: | (const fml::RefPtr<fml::RasterThreadMerger>&) | rasterThreadMerger | |
impellerEnabled: | (BOOL) | impellerEnabled | |
Mark the end of a compositor frame.
May determine changes are required to the thread merging state. Called from the raster thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (long) firstResponderPlatformViewId |
Returns the platform view id if the platform view (or any of its descendant view) is the first responder.
Returns -1 if no such platform view is found.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (FlutterTouchInterceptingView *) flutterTouchInterceptingViewForId: | (int64_t) | viewId |
Returns theFlutterTouchInterceptingView
with the provided view_id.
Returns nil if there is no platform view with the provided id. Called from the platform thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (instancetype) NS_DESIGNATED_INITIALIZER |
- (void) onMethodCall: | (FlutterMethodCall*) | call | |
result: | (FlutterResult) | result | |
Handler for platform view message channels.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (UIView* _Nullable) platformViewForId: | (int64_t) | viewId |
Provided by category FlutterPlatformViewsController(Testing).
- (PostPrerollResult) FlutterPlatformViewsController: | (const fml::RefPtr<fml::RasterThreadMerger>&) | rasterThreadMerger | |
impellerEnabled: | (BOOL) | impellerEnabled | |
Determine if thread merging is required after prerolling platform views.
Called from the raster thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) prerollCompositeEmbeddedView: | (int64_t) | viewId | |
withParams: | (std::unique_ptr<flutter::EmbeddedViewParams>) | params | |
Record a platform view in the layer tree to be rendered, along with the positioning and mutator parameters.
Called from the raster thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) pushFilterToVisitedPlatformViews: | (const std::shared_ptr<flutter::DlImageFilter>&) | filter | |
withRect: | (const SkRect&) | filterRect | |
Pushes backdrop filter mutation to the mutator stack of each visited platform view.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) pushVisitedPlatformViewId: | (int64_t) | viewId |
Pushes the view id of a visted platform view to the list of visied platform views.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) registerViewFactory: | (NSObject<FlutterPlatformViewFactory>*) | factory | |
withId: | (NSString*) | factoryId | |
gestureRecognizersBlockingPolicy: | (FlutterPlatformViewGestureRecognizersBlockingPolicy) | gestureRecognizerBlockingPolicy | |
set the factory used to construct embedded UI Views.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (void) reset |
Discards all platform views instances and auxiliary resources.
Called from the raster thread.
Definition at line 288 of file FlutterPlatformViewsController.mm.
- (BOOL) submitFrame: | (std::unique_ptr< flutter::SurfaceFrame >) | frame | |
withIosContext: | (const std::shared_ptr< flutter::IOSContext > &) | iosContext | |
grContext: | (GrDirectContext *_Nullable) | grContext | |
Encode rendering for the Flutter overlay views and queue up perform platform view mutations.
Called from the raster thread.
|
readwritenonatomicweak |
The flutter view.
Definition at line 39 of file FlutterPlatformViewsController.h.
|
readwritenonatomicweak |
The flutter view controller.
Definition at line 42 of file FlutterPlatformViewsController.h.
|
readwritenonatomicassign |
The task runner used to post rendering tasks to the platform thread.
Definition at line 36 of file FlutterPlatformViewsController.h.