Instance Methods | |
(instancetype) | - initWithIdentifier:channel: |
An NSMenuDelegate used to listen for changes in the menu when it opens and closes.
Definition at line 159 of file FlutterMenuPlugin.mm.
- (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 174 of file FlutterMenuPlugin.mm.
References _identifier.