| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef RUNNER_READER_METHOD_CALL_H_
- #define RUNNER_READER_METHOD_CALL_H_
- #include <flutter/flutter_engine.h>
- #include <flutter/method_channel.h>
- #include <flutter/plugin_registrar_windows.h>
- #include <flutter/standard_method_codec.h>
- #include <flutter/event_channel.h>
- #include <flutter/event_stream_handler_functions.h>
- #include <memory>
- #include <string>
- // Handle reader functionality method calls
- class ReaderMethodCall
- {
- public:
- // Register method channel with the given registrar
- static void RegisterWindowsAPI(flutter::FlutterEngine *engine);
- private:
- // Keep constructor private since this is a utility class
- ReaderMethodCall() = delete;
- ~ReaderMethodCall() = delete;
- // Called when a method is invoked on the channel
- static void HandleMethodCall(
- const flutter::MethodCall<flutter::EncodableValue> &method_call,
- std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
- };
- #endif // RUNNER_READER_METHOD_CALL_H_
|