mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
update android build
This commit is contained in:
31
windows/flutter_qjs_plugin.h
Normal file
31
windows/flutter_qjs_plugin.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_
|
||||
#define FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_
|
||||
|
||||
#include <flutter/method_channel.h>
|
||||
#include <flutter/plugin_registrar_windows.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace flutter_qjs {
|
||||
|
||||
class FlutterQjsPlugin : public flutter::Plugin {
|
||||
public:
|
||||
static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar);
|
||||
|
||||
FlutterQjsPlugin();
|
||||
|
||||
virtual ~FlutterQjsPlugin();
|
||||
|
||||
// Disallow copy and assign.
|
||||
FlutterQjsPlugin(const FlutterQjsPlugin&) = delete;
|
||||
FlutterQjsPlugin& operator=(const FlutterQjsPlugin&) = 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 flutter_qjs
|
||||
|
||||
#endif // FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_
|
Reference in New Issue
Block a user