union_ad_ssgf/windows/union_ad_ssgf_plugin.h
2024-10-15 15:31:53 +08:00

32 lines
910 B
C++

#ifndef FLUTTER_PLUGIN_UNION_AD_SSGF_PLUGIN_H_
#define FLUTTER_PLUGIN_UNION_AD_SSGF_PLUGIN_H_
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include <memory>
namespace union_ad_ssgf {
class UnionAdSsgfPlugin : public flutter::Plugin {
public:
static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar);
UnionAdSsgfPlugin();
virtual ~UnionAdSsgfPlugin();
// Disallow copy and assign.
UnionAdSsgfPlugin(const UnionAdSsgfPlugin&) = delete;
UnionAdSsgfPlugin& operator=(const UnionAdSsgfPlugin&) = 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 union_ad_ssgf
#endif // FLUTTER_PLUGIN_UNION_AD_SSGF_PLUGIN_H_