Flutter Engine
The Flutter Engine
Instance Methods | Properties | List of all members
FakePluginRegistrar Class Reference
Inheritance diagram for FakePluginRegistrar:
<FlutterPluginRegistrar>

Instance Methods

(void) - addMethodCallDelegate:channel: [implementation]
 
(void) - addApplicationDelegate: [implementation]
 
(void) - registerViewFactory:withId: [implementation]
 
(void) - publish: [implementation]
 
(nonnull NSString *) - lookupKeyForAsset: [implementation]
 
(nonnull NSString *) - lookupKeyForAsset:fromPackage: [implementation]
 
- Instance Methods inherited from <FlutterPluginRegistrar>
(NSObject< FlutterBinaryMessenger > *) - messenger
 
(NSObject< FlutterTextureRegistry > *) - textures
 
(void) - registerViewFactory:withId:
 
(void) - registerViewFactory:withId:gestureRecognizersBlockingPolicy:
 
(void) - publish:
 
(void) - addMethodCallDelegate:channel:
 
(void) - addApplicationDelegate:
 
(NSString *) - lookupKeyForAsset:
 
(NSString *) - lookupKeyForAsset:fromPackage:
 
(void) - addMethodCallDelegate:channel:
 
(void) - addApplicationDelegate:
 
(void) - registerViewFactory:withId:
 
(void) - publish:
 
(nonnull NSString *) - lookupKeyForAsset:
 
(nonnull NSString *) - lookupKeyForAsset:fromPackage:
 

Properties

id< FlutterPluginplugin
 
FlutterMethodChannelchannel
 
- Properties inherited from <FlutterPluginRegistrar>
id< FlutterBinaryMessengermessenger
 
id< FlutterTextureRegistrytextures
 
NSView * view
 

Detailed Description

Definition at line 22 of file FlutterMenuPluginTest.mm.

Method Documentation

◆ addApplicationDelegate:

- (void) addApplicationDelegate: (nonnull NSObject< FlutterAppLifecycleDelegate > *)  delegate
implementation

Registers the plugin as a receiver of NSApplicationDelegate calls.

Parameters
delegateThe receiving object, such as the plugin's main class.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

41 :(nonnull NSObject<FlutterAppLifecycleDelegate>*)delegate {
42}

◆ addMethodCallDelegate:channel:

- (void) addMethodCallDelegate: (nonnull id< FlutterPlugin >)  delegate
channel: (nonnull FlutterMethodChannel *)  channel 
implementation

Registers |delegate| to receive handleMethodCall:result: callbacks for the given |channel|.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

32 :(nonnull id<FlutterPlugin>)delegate
34 _plugin = delegate;
36 [_channel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) {
37 [delegate handleMethodCall:call result:result];
38 }];
39}
FlutterTextInputPlugin * _plugin
FlutterMethodChannel * _channel
FlutterMethodChannel * channel

◆ lookupKeyForAsset:

- (nonnull NSString *) lookupKeyForAsset: (nonnull NSString *)  asset
implementation

Returns the file name for the given asset. The returned file name can be used to access the asset in the application's main bundle.

Parameters
assetThe name of the asset. The name can be hierarchical.
Returns
the file name to be used for lookup in the main bundle.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

51 :(nonnull NSString*)asset {
52 return @"";
53}

◆ lookupKeyForAsset:fromPackage:

- (nonnull NSString *) lookupKeyForAsset: (nonnull NSString *)  asset
fromPackage: (nonnull NSString *)  package 
implementation

Returns the file name for the given asset which originates from the specified package. The returned file name can be used to access the asset in the application's main bundle.

Parameters
assetThe name of the asset. The name can be hierarchical.
packageThe name of the package from which the asset originates.
Returns
the file name to be used for lookup in the main bundle.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

55 :(nonnull NSString*)asset
56 fromPackage:(nonnull NSString*)package {
57 return @"";
58}

◆ publish:

- (void) publish: (nonnull NSObject *)  value
implementation

Publishes a value for external use of the plugin.

Plugins may publish a single value, such as an instance of the plugin's main class, for situations where external control or interaction is needed.

The published value will be available from the FlutterPluginRegistry. Repeated calls overwrite any previous publication.

Parameters
valueThe value to be published.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

48 :(nonnull NSObject*)value {
49}
uint8_t value

◆ registerViewFactory:withId:

- (void) registerViewFactory: (nonnull NSObject< FlutterPlatformViewFactory > *)  factory
withId: (nonnull NSString *)  factoryId 
implementation

Registers a FlutterPlatformViewFactory for creation of platform views.

Plugins expose NSView 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 NSView by the registered factory.

Reimplemented from <FlutterPluginRegistrar>.

Definition at line 24 of file FlutterMenuPluginTest.mm.

44 :(nonnull NSObject<FlutterPlatformViewFactory>*)factory
45 withId:(nonnull NSString*)factoryId {
46}

Property Documentation

◆ channel

- (FlutterMethodChannel*) channel
readnonatomicassign

Definition at line 24 of file FlutterMenuPluginTest.mm.

◆ plugin

- (id<FlutterPlugin>) plugin
readnonatomicassign

Definition at line 23 of file FlutterMenuPluginTest.mm.


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