#import <FlutterPlatformViewController.h>
◆ disposePlatformViews
- (void) disposePlatformViews |
|
|
|
|
implementation |
Removes platform views slated to be disposed via method handler calls.
◆ handleMethodCall:result:
Handles platform view related method calls, for example create, dispose, etc.
◆ onCreateWithViewIdentifier:viewType:arguments:result:
- (void) onCreateWithViewIdentifier: |
|
(int64_t) |
viewId |
viewType: |
|
(nonnull NSString *) |
viewType |
arguments: |
|
(nullable id) |
args |
result: |
|
(nonnull FlutterResult) |
result |
|
|
| |
|
implementation |
Creates a platform view of viewType with viewId and arguments passed from the framework's creationParams constructor parameter. FlutterResult is updated to contain nil for success or to contain a FlutterError if there is an error.
◆ onDisposeWithViewID:result:
- (void) onDisposeWithViewID: |
|
(int64_t) |
viewId |
result: |
|
(nonnull FlutterResult) |
result |
|
|
| |
|
implementation |
Disposes the platform view with viewId
. FlutterResult is updated to contain nil for success or a FlutterError if there is an error.
◆ platformViewWithID:
- (nullable NSView*) platformViewWithID: |
|
(int64_t) |
viewId |
|
|
implementation |
Returns the platform view associated with the viewId.
◆ registerViewFactory:withId:
Register a view factory by adding an entry into the platformViewFactories map with key factoryId and value factory.
The documentation for this class was generated from the following file: