Flutter Engine
The Flutter Engine
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
11
12namespace 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.
19 public:
20 PluginRegistry() = default;
21 virtual ~PluginRegistry() = default;
22
23 // Prevent copying.
26
27 // Returns the FlutterDesktopPluginRegistrarRef to register a plugin with the
28 // given name.
29 //
30 // The name must be unique across the application.
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_
PluginRegistry & operator=(PluginRegistry const &)=delete
PluginRegistry(PluginRegistry const &)=delete
virtual FlutterDesktopPluginRegistrarRef GetRegistrarForPlugin(const std::string &plugin_name)=0
virtual ~PluginRegistry()=default