Flutter Engine
The Flutter Engine
shell
platform
common
public
flutter_plugin_registrar.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_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
6
#define FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
7
8
#include <stddef.h>
9
#include <stdint.h>
10
11
#include "
flutter_export.h
"
12
#include "
flutter_messenger.h
"
13
#include "
flutter_texture_registrar.h
"
14
15
#if defined(__cplusplus)
16
extern
"C"
{
17
#endif
// defined(__cplusplus)
18
19
// Opaque reference to a plugin registrar.
20
typedef
struct
FlutterDesktopPluginRegistrar
*
FlutterDesktopPluginRegistrarRef
;
21
22
// Function pointer type for registrar destruction callback.
23
typedef
void (*
FlutterDesktopOnPluginRegistrarDestroyed
)(
24
FlutterDesktopPluginRegistrarRef
);
25
26
// Returns the engine messenger associated with this registrar.
27
FLUTTER_EXPORT
FlutterDesktopMessengerRef
28
FlutterDesktopPluginRegistrarGetMessenger
(
29
FlutterDesktopPluginRegistrarRef
registrar);
30
31
// Returns the texture registrar associated with this registrar.
32
FLUTTER_EXPORT
FlutterDesktopTextureRegistrarRef
33
FlutterDesktopRegistrarGetTextureRegistrar
(
34
FlutterDesktopPluginRegistrarRef
registrar);
35
36
// Registers a callback to be called when the plugin registrar is destroyed.
37
FLUTTER_EXPORT
void
FlutterDesktopPluginRegistrarSetDestructionHandler
(
38
FlutterDesktopPluginRegistrarRef
registrar,
39
FlutterDesktopOnPluginRegistrarDestroyed
callback
);
40
41
#if defined(__cplusplus)
42
}
// extern "C"
43
#endif
44
45
#endif
// FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_PLUGIN_REGISTRAR_H_
callback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Definition:
fl_key_channel_responder.cc:120
flutter_export.h
FLUTTER_EXPORT
#define FLUTTER_EXPORT
Definition:
flutter_export.h:23
flutter_messenger.h
FlutterDesktopRegistrarGetTextureRegistrar
FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar(FlutterDesktopPluginRegistrarRef registrar)
Definition:
stub_flutter_api.cc:123
FlutterDesktopPluginRegistrarRef
struct FlutterDesktopPluginRegistrar * FlutterDesktopPluginRegistrarRef
Definition:
flutter_plugin_registrar.h:20
FlutterDesktopOnPluginRegistrarDestroyed
void(* FlutterDesktopOnPluginRegistrarDestroyed)(FlutterDesktopPluginRegistrarRef)
Definition:
flutter_plugin_registrar.h:23
FlutterDesktopPluginRegistrarSetDestructionHandler
FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler(FlutterDesktopPluginRegistrarRef registrar, FlutterDesktopOnPluginRegistrarDestroyed callback)
Definition:
stub_flutter_api.cc:45
FlutterDesktopPluginRegistrarGetMessenger
FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopPluginRegistrarGetMessenger(FlutterDesktopPluginRegistrarRef registrar)
Definition:
stub_flutter_api.cc:39
flutter_texture_registrar.h
FlutterDesktopTextureRegistrarRef
struct FlutterDesktopTextureRegistrar * FlutterDesktopTextureRegistrarRef
Definition:
flutter_texture_registrar.h:19
FlutterDesktopMessenger
Definition:
flutter_glfw.cc:158
FlutterDesktopPluginRegistrar
Definition:
flutter_glfw.cc:149
Generated on Sun Jun 23 2024 21:55:11 for Flutter Engine by
1.9.4