Flutter Engine
 
Loading...
Searching...
No Matches
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 159 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 171 of file FlutterMenuPlugin.mm.

174 :(int64_t)identifier channel:(FlutterMethodChannel*)channel {
175 self = [super init];
176 if (self) {
177 _identifier = identifier;
179 }
180 return self;
181}
int64_t _identifier
FlutterMethodChannel * _channel
const gchar * channel

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