flutter plugin for zebra multiplatform sdk

flutter_zsdk_plugin.h 936B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef FLUTTER_PLUGIN_FLUTTER_ZSDK_PLUGIN_H_
  2. #define FLUTTER_PLUGIN_FLUTTER_ZSDK_PLUGIN_H_
  3. #include <flutter/method_channel.h>
  4. #include <flutter/plugin_registrar_windows.h>
  5. #include <memory>
  6. namespace flutter_zsdk {
  7. class FlutterZsdkPlugin : public flutter::Plugin {
  8. public:
  9. static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar);
  10. FlutterZsdkPlugin();
  11. virtual ~FlutterZsdkPlugin();
  12. // Disallow copy and assign.
  13. FlutterZsdkPlugin(const FlutterZsdkPlugin&) = delete;
  14. FlutterZsdkPlugin& operator=(const FlutterZsdkPlugin&) = delete;
  15. // Called when a method is called on this plugin's channel from Dart.
  16. void HandleMethodCall(
  17. const flutter::MethodCall<flutter::EncodableValue> &method_call,
  18. std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
  19. };
  20. } // namespace flutter_zsdk
  21. #endif // FLUTTER_PLUGIN_FLUTTER_ZSDK_PLUGIN_H_