Flutter macOS Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
FlutterMenuPlugin.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMENUPLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMENUPLUGIN_H_
7 
8 #import <AppKit/AppKit.h>
9 
13 
14 /**
15  * A plugin to configure and control the native system menu.
16  *
17  * Responsible for bridging the native macOS menu system with the Flutter
18  * framework's PlatformMenuBar class, via method channels.
19  */
20 @interface FlutterMenuPlugin : NSObject <FlutterPlugin>
21 
22 /**
23  * Registers a FlutterMenuPlugin with the given registrar.
24  */
25 + (void)registerWithRegistrar:(nonnull id<FlutterPluginRegistrar>)registrar;
26 @end
27 
28 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERMENUPLUGIN_H_