Flutter Engine
The Flutter Engine
shell
platform
common
client_wrapper
include
flutter
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::PluginRegistry
Definition:
plugin_registry.h:18
flutter::PluginRegistry::operator=
PluginRegistry & operator=(PluginRegistry const &)=delete
flutter::PluginRegistry::PluginRegistry
PluginRegistry(PluginRegistry const &)=delete
flutter::PluginRegistry::GetRegistrarForPlugin
virtual FlutterDesktopPluginRegistrarRef GetRegistrarForPlugin(const std::string &plugin_name)=0
flutter::PluginRegistry::PluginRegistry
PluginRegistry()=default
flutter::PluginRegistry::~PluginRegistry
virtual ~PluginRegistry()=default
flutter_plugin_registrar.h
flutter
Definition:
asset_manager.cc:10
FlutterDesktopPluginRegistrar
Definition:
flutter_glfw.cc:149
Generated on Sun Jun 23 2024 21:55:11 for Flutter Engine by
1.9.4