| Flutter iOS Embedder |

plugin_registry.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_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_PLUGIN_REGISTRY_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_PLUGIN_REGISTRY_H_
7
8 #include <string>
9
10 #include <flutter_plugin_registrar.h>
11
12 namespace flutter {
13
14 // Vends PluginRegistrars for named plugins.
15 //
16 // Plugins are identified by unique string keys, typically the name of the
17 // plugin's main class.
18 class PluginRegistry {
19 public:
20 PluginRegistry() = default;
21 virtual ~PluginRegistry() = default;
22
23 // Prevent copying.
24 PluginRegistry(PluginRegistry const&) = delete;
25 PluginRegistry& operator=(PluginRegistry const&) = delete;
26
27 // Returns the FlutterDesktopPluginRegistrarRef to register a plugin with the
28 // given name.
29 //
30 // The name must be unique across the application.
31 virtual FlutterDesktopPluginRegistrarRef GetRegistrarForPlugin(
32 const std::string& plugin_name) = 0;
33 };
34
35 } // namespace flutter
36
37 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_PLUGIN_REGISTRY_H_
flutter_plugin_registrar.h
flutter::PluginRegistry::GetRegistrarForPlugin
virtual FlutterDesktopPluginRegistrarRef GetRegistrarForPlugin(const std::string &plugin_name)=0
flutter::PluginRegistry::operator=
PluginRegistry & operator=(PluginRegistry const &)=delete
flutter
Definition: accessibility_bridge.h:27
flutter::PluginRegistry
Definition: plugin_registry.h:18
flutter::PluginRegistry::~PluginRegistry
virtual ~PluginRegistry()=default
flutter::PluginRegistry::PluginRegistry
PluginRegistry()=default
FlutterDesktopPluginRegistrarRef
struct FlutterDesktopPluginRegistrar * FlutterDesktopPluginRegistrarRef
Definition: flutter_plugin_registrar.h:20