32 lines
953 B
C++
32 lines
953 B
C++
#ifndef FLUTTER_PLUGIN_POLYVOX_FILAMENT_PLUGIN_H_
|
|
#define FLUTTER_PLUGIN_POLYVOX_FILAMENT_PLUGIN_H_
|
|
|
|
#include <flutter/method_channel.h>
|
|
#include <flutter/plugin_registrar_windows.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace polyvox_filament {
|
|
|
|
class PolyvoxFilamentPlugin : public flutter::Plugin {
|
|
public:
|
|
static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar);
|
|
|
|
PolyvoxFilamentPlugin();
|
|
|
|
virtual ~PolyvoxFilamentPlugin();
|
|
|
|
// Disallow copy and assign.
|
|
PolyvoxFilamentPlugin(const PolyvoxFilamentPlugin&) = delete;
|
|
PolyvoxFilamentPlugin& operator=(const PolyvoxFilamentPlugin&) = delete;
|
|
|
|
// Called when a method is called on this plugin's channel from Dart.
|
|
void HandleMethodCall(
|
|
const flutter::MethodCall<flutter::EncodableValue> &method_call,
|
|
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
};
|
|
|
|
} // namespace polyvox_filament
|
|
|
|
#endif // FLUTTER_PLUGIN_POLYVOX_FILAMENT_PLUGIN_H_
|