// Copyright (c) 2022 NetEase, Inc. All rights reserved. // Use of this source code is governed by a MIT license that can be // found in the LICENSE file. #ifndef METHODCALLHANDLERIMPL_H #define METHODCALLHANDLERIMPL_H #include #include #include #include #include "NimCore.h" class MethodCallHandlerImpl { public: MethodCallHandlerImpl(); void onMethodCall( const flutter::MethodCall& method_call, std::shared_ptr> result); flutter::MethodChannel* startListening( flutter::PluginRegistrar* registrar); void stopListening(); private: std::unique_ptr> m_methodChannel; }; #endif // METHODCALLHANDLERIMPL_H