Flutter Engine
flutter_plugin_registrar.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "flutter_export.h"
#include "flutter_messenger.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 void FlutterDesktopPluginRegistrarSetDestructionHandler (FlutterDesktopPluginRegistrarRef registrar, FlutterDesktopOnPluginRegistrarDestroyed callback)
 

Typedef Documentation

◆ FlutterDesktopOnPluginRegistrarDestroyed

typedef void(* FlutterDesktopOnPluginRegistrarDestroyed) (FlutterDesktopPluginRegistrarRef)

Definition at line 22 of file flutter_plugin_registrar.h.

◆ FlutterDesktopPluginRegistrarRef

Function Documentation

◆ FlutterDesktopPluginRegistrarGetMessenger()

FLUTTER_EXPORT FlutterDesktopMessengerRef FlutterDesktopPluginRegistrarGetMessenger ( FlutterDesktopPluginRegistrarRef  registrar)

Definition at line 37 of file stub_flutter_api.cc.

References FlutterDesktopPluginRegistrar::engine, and FlutterDesktopEngineState::messenger.

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

◆ FlutterDesktopPluginRegistrarSetDestructionHandler()

FLUTTER_EXPORT void FlutterDesktopPluginRegistrarSetDestructionHandler ( FlutterDesktopPluginRegistrarRef  registrar,
FlutterDesktopOnPluginRegistrarDestroyed  callback 
)

Definition at line 43 of file stub_flutter_api.cc.

References FlutterDesktopPluginRegistrar::destruction_handler, FlutterDesktopPluginRegistrar::engine, and flutter::testing::StubFlutterApi::PluginRegistrarSetDestructionHandler().

Referenced by flutter::PluginRegistrarManager::GetRegistrar().

45  {
48  }
49 }
virtual void PluginRegistrarSetDestructionHandler(FlutterDesktopOnPluginRegistrarDestroyed callback)
static flutter::testing::StubFlutterApi * s_stub_implementation