flowy_board_plugin.h 903 B

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