Flutter Engine
The Flutter Engine
Typedefs | Functions
flutter_plugin_registrar.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "flutter_export.h"
#include "flutter_messenger.h"
#include "flutter_texture_registrar.h"

Go to the source code of this file.

Typedefs

typedef struct FlutterDesktopPluginRegistrarFlutterDesktopPluginRegistrarRef
 
typedef void(* FlutterDesktopOnPluginRegistrarDestroyed) (FlutterDesktopPluginRegistrarRef)
 

Functions

FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopPluginRegistrarGetMessenger (FlutterDesktopPluginRegistrarRef registrar)
 
FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar (FlutterDesktopPluginRegistrarRef registrar)
 
FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler (FlutterDesktopPluginRegistrarRef registrar, FlutterDesktopOnPluginRegistrarDestroyed callback)
 

Typedef Documentation

◆ FlutterDesktopOnPluginRegistrarDestroyed

typedef void(* FlutterDesktopOnPluginRegistrarDestroyed) (FlutterDesktopPluginRegistrarRef)

Definition at line 23 of file flutter_plugin_registrar.h.

◆ FlutterDesktopPluginRegistrarRef

Definition at line 20 of file flutter_plugin_registrar.h.

Function Documentation

◆ FlutterDesktopPluginRegistrarGetMessenger()

FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopPluginRegistrarGetMessenger ( FlutterDesktopPluginRegistrarRef  registrar)

Definition at line 39 of file stub_flutter_api.cc.

40 {
41 // The stub ignores this, so just return an arbitrary non-zero value.
42 return reinterpret_cast<FlutterDesktopMessengerRef>(1);
43}

◆ FlutterDesktopPluginRegistrarSetDestructionHandler()

FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler ( FlutterDesktopPluginRegistrarRef  registrar,
FlutterDesktopOnPluginRegistrarDestroyed  callback 
)

Definition at line 45 of file stub_flutter_api.cc.

47 {
50 }
51}
virtual void PluginRegistrarSetDestructionHandler(FlutterDesktopOnPluginRegistrarDestroyed callback)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
static flutter::testing::StubFlutterApi * s_stub_implementation

◆ FlutterDesktopRegistrarGetTextureRegistrar()

FLUTTER_EXPORT FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar ( FlutterDesktopPluginRegistrarRef  registrar)

Definition at line 123 of file stub_flutter_api.cc.

124 {
125 return reinterpret_cast<FlutterDesktopTextureRegistrarRef>(1);
126}
struct FlutterDesktopTextureRegistrar * FlutterDesktopTextureRegistrarRef