| Flutter macOS Embedder |

Class Methods | List of all members
FlutterMenuPlugin Class Reference

`#import <FlutterMenuPlugin.h>`

Inheritance diagram for FlutterMenuPlugin:

## Class Methods
(void) | + registerWithRegistrar:
Class Methods inherited from <FlutterPlugin>
(void) | + registerWithRegistrar:

## Additional Inherited Members
Instance Methods inherited from <FlutterPlugin>
(void) | - handleMethodCall:result:
Instance Methods inherited from <FlutterAppLifecycleDelegate>
(void) | - handleWillFinishLaunching:
(void) | - handleDidFinishLaunching:
(void) | - handleWillBecomeActive:
(void) | - handleDidBecomeActive:
(void) | - handleWillResignActive:
(void) | - handleDidResignActive:
(void) | - handleWillHide:
(void) | - handleDidHide:
(void) | - handleWillUnhide:
(void) | - handleDidUnhide:
(void) | - handleDidChangeScreenParameters:
(void) | - handleDidChangeOcclusionState:
(BOOL) | - handleOpenURLs:
(void) | - handleWillTerminate:

## Detailed Description

A plugin to configure and control the native system menu.

Responsible for bridging the native macOS menu system with the Flutter framework's PlatformMenuBar class, via method channels.

Definition at line 20 of file FlutterMenuPlugin.h.

## Method Documentation

## ◆ registerWithRegistrar:

+ (void) registerWithRegistrar: |  | (nonnull id<FlutterPluginRegistrar>) | registrar |

Registers a FlutterMenuPlugin with the given registrar.

Definition at line 230 of file FlutterMenuPlugin.mm.

421 :(nonnull id<FlutterPluginRegistrar>)registrar {
422 FlutterMethodChannel* channel = [FlutterMethodChannel methodChannelWithName:kChannelName
423 binaryMessenger:registrar.messenger];
424 FlutterMenuPlugin* instance = [[FlutterMenuPlugin alloc] initWithChannel:channel];
425 [registrar addMethodCallDelegate:instance channel:channel];
426 }
FlutterMethodChannel
Definition: FlutterChannels.h:221
+[FlutterMethodChannel methodChannelWithName:binaryMessenger:]
instancetype methodChannelWithName:binaryMessenger:(NSString *name,[binaryMessenger] NSObject< FlutterBinaryMessenger > *messenger)

Referenced by flutter::testing::TEST_F().

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

- shell/platform/darwin/macos/framework/Source/FlutterMenuPlugin.h
- shell/platform/darwin/macos/framework/Source/FlutterMenuPlugin.mm