Files
customer-im-client-dev/packages/im_log_sdk/windows/im_log_sdk_plugin.h
2026-03-06 15:05:53 +08:00

32 lines
874 B
C++

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