| Flutter macOS Embedder |

Instance Methods | List of all members
FlutterMenuDelegate Class Reference
Inheritance diagram for FlutterMenuDelegate:

## Instance Methods
(instancetype) | - initWithIdentifier:channel:

## Detailed Description

An NSMenuDelegate used to listen for changes in the menu when it opens and closes.

Definition at line 160 of file FlutterMenuPlugin.mm.

## Method Documentation

## ◆ initWithIdentifier:channel:

- (instancetype) initWithIdentifier: |  | (int64_t) | identifier
channel: |  | (FlutterMethodChannel*) | channel

When this delegate receives notification that the menu opened or closed, it will send a message on the given channel to that effect for the menu item with the given id (the ID comes from the data supplied by the framework to |FlutterMenuPlugin.setMenus|).

Definition at line 172 of file FlutterMenuPlugin.mm.

175 :(int64_t)identifier channel:(FlutterMethodChannel*)channel {
176 self = [super init];
177 if (self) {
178 _identifier = identifier;
179 _channel = channel;
180 }
181 return self;
182 }
FlutterMethodChannel
Definition: FlutterChannels.h:221

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

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