Flutter Engine
 
Loading...
Searching...
No Matches
<FlutterBaseRegistrar> Protocol Reference

#include <FlutterPlugin.h>

Inheritance diagram for <FlutterBaseRegistrar>:
<FlutterApplicationRegistrar> FlutterEngineBaseRegistrar <FlutterPluginRegistrar> FlutterEnginePluginRegistrar FakePluginRegistrar FlutterEnginePluginRegistrar FlutterEngineRegistrar

Instance Methods

(NSObject< FlutterBinaryMessenger > *) - messenger
 
(NSObject< FlutterTextureRegistry > *) - textures
 
(void) - registerViewFactory:withId:
 
(void) - registerViewFactory:withId:gestureRecognizersBlockingPolicy:
 

Detailed Description

The base interface for FlutterPluginRegistrar and FlutterApplicationRegistrar.

Provides registration context for the application or plugins.

Definition at line 280 of file FlutterPlugin.h.

Method Documentation

◆ messenger

- (NSObject< FlutterBinaryMessenger > *) messenger

Returns a FlutterBinaryMessenger for creating Dart/iOS communication channels to be used by the application or a plugin.

Returns
The messenger.

◆ registerViewFactory:withId:

- (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.

Parameters
factoryThe view factory that will be registered.
factoryIdA 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.

◆ registerViewFactory:withId:gestureRecognizersBlockingPolicy:

- (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.

Parameters
factoryThe view factory that will be registered.
factoryIdA 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.
gestureRecognizersBlockingPolicyHow UIGestureRecognizers on the platform views are blocked.

◆ textures

- (NSObject< FlutterTextureRegistry > *) textures

Returns a FlutterTextureRegistry for registering textures provided by the application or a plugin.

Returns
The texture registry.

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