// Copyright 2021 Sony Group Corporation. All rights reserved. // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PACKAGES_CAMERA_CAMERA_ELINUX_CAMERA_CHANNELS_METHOD_CHANNEL_CAMERA_H_ #define PACKAGES_CAMERA_CAMERA_ELINUX_CAMERA_CHANNELS_METHOD_CHANNEL_CAMERA_H_ #include #include #include #include #include "events/camera_initialized_event.h" class MethodChannelCamera { public: MethodChannelCamera(flutter::PluginRegistrar* registrar, int64_t camera_id); ~MethodChannelCamera() = default; void SendInitializedEvent(CameraInitializedEvent& message); private: void Send(const std::string& method, std::unique_ptr&& arguments); std::unique_ptr> channel_; }; #endif // PACKAGES_CAMERA_CAMERA_ELINUX_CAMERA_CHANNELS_METHOD_CHANNEL_CAMERA_H_