#include <FlutterPlugin.h>
Instance Methods | |
| (NSObject< FlutterBinaryMessenger > *) | - messenger |
| (NSObject< FlutterTextureRegistry > *) | - textures |
| (void) | - registerViewFactory:withId: |
| (void) | - registerViewFactory:withId:gestureRecognizersBlockingPolicy: |
The base interface for FlutterPluginRegistrar and FlutterApplicationRegistrar.
Provides registration context for the application or plugins.
Definition at line 280 of file FlutterPlugin.h.
| - (NSObject< FlutterBinaryMessenger > *) messenger |
Returns a FlutterBinaryMessenger for creating Dart/iOS communication channels to be used by the application or a plugin.
| - (void) registerViewFactory: | (NSObject< FlutterPlatformViewFactory > *) | factory | |
| withId: | (NSString *) | factoryId | |
Registers a FlutterPlatformViewFactory for creation of platform views.
Applications or plugins can expose UIView for embedding in Flutter apps by registering a view factory.
| factory | The view factory that will be registered. |
| factoryId | A unique identifier for the factory, the Dart code of the Flutter app can use this identifier to request creation of a UIView by the registered factory. |
| - (void) registerViewFactory: | (NSObject< FlutterPlatformViewFactory > *) | factory | |
| withId: | (NSString *) | factoryId | |
| gestureRecognizersBlockingPolicy: | (FlutterPlatformViewGestureRecognizersBlockingPolicy) | gestureRecognizersBlockingPolicy | |
Registers a FlutterPlatformViewFactory for creation of platform views.
Applications or plugins can expose a UIView for embedding in Flutter apps by registering a view factory.
| factory | The view factory that will be registered. |
| factoryId | A unique identifier for the factory, the Dart code of the Flutter app can use this identifier to request creation of a UIView by the registered factory. |
| gestureRecognizersBlockingPolicy | How UIGestureRecognizers on the platform views are blocked. |
| - (NSObject< FlutterTextureRegistry > *) textures |
Returns a FlutterTextureRegistry for registering textures provided by the application or a plugin.