///
/// HybridVideoViewViewManagerSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `HybridVideoPlayerSpec` to properly resolve imports.
namespace margelo::nitro::video { class HybridVideoPlayerSpec; }
// Forward declaration of `ResizeMode` to properly resolve imports.
namespace margelo::nitro::video { enum class ResizeMode; }

#include <memory>
#include "HybridVideoPlayerSpec.hpp"
#include <optional>
#include "ResizeMode.hpp"
#include <functional>

namespace margelo::nitro::video {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `VideoViewViewManager`
   * Inherit this class to create instances of `HybridVideoViewViewManagerSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridVideoViewViewManager: public HybridVideoViewViewManagerSpec {
   * public:
   *   HybridVideoViewViewManager(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridVideoViewViewManagerSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridVideoViewViewManagerSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridVideoViewViewManagerSpec() override = default;

    public:
      // Properties
      virtual std::optional<std::shared_ptr<HybridVideoPlayerSpec>> getPlayer() = 0;
      virtual void setPlayer(const std::optional<std::shared_ptr<HybridVideoPlayerSpec>>& player) = 0;
      virtual bool getControls() = 0;
      virtual void setControls(bool controls) = 0;
      virtual bool getPictureInPicture() = 0;
      virtual void setPictureInPicture(bool pictureInPicture) = 0;
      virtual bool getAutoEnterPictureInPicture() = 0;
      virtual void setAutoEnterPictureInPicture(bool autoEnterPictureInPicture) = 0;
      virtual ResizeMode getResizeMode() = 0;
      virtual void setResizeMode(ResizeMode resizeMode) = 0;
      virtual bool getKeepScreenAwake() = 0;
      virtual void setKeepScreenAwake(bool keepScreenAwake) = 0;
      virtual std::optional<std::function<void(bool /* isInPictureInPicture */)>> getOnPictureInPictureChange() = 0;
      virtual void setOnPictureInPictureChange(const std::optional<std::function<void(bool /* isInPictureInPicture */)>>& onPictureInPictureChange) = 0;
      virtual std::optional<std::function<void(bool /* fullscreen */)>> getOnFullscreenChange() = 0;
      virtual void setOnFullscreenChange(const std::optional<std::function<void(bool /* fullscreen */)>>& onFullscreenChange) = 0;
      virtual std::optional<std::function<void()>> getWillEnterFullscreen() = 0;
      virtual void setWillEnterFullscreen(const std::optional<std::function<void()>>& willEnterFullscreen) = 0;
      virtual std::optional<std::function<void()>> getWillExitFullscreen() = 0;
      virtual void setWillExitFullscreen(const std::optional<std::function<void()>>& willExitFullscreen) = 0;
      virtual std::optional<std::function<void()>> getWillEnterPictureInPicture() = 0;
      virtual void setWillEnterPictureInPicture(const std::optional<std::function<void()>>& willEnterPictureInPicture) = 0;
      virtual std::optional<std::function<void()>> getWillExitPictureInPicture() = 0;
      virtual void setWillExitPictureInPicture(const std::optional<std::function<void()>>& willExitPictureInPicture) = 0;

    public:
      // Methods
      virtual void enterFullscreen() = 0;
      virtual void exitFullscreen() = 0;
      virtual void enterPictureInPicture() = 0;
      virtual void exitPictureInPicture() = 0;
      virtual bool canEnterPictureInPicture() = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "VideoViewViewManager";
  };

} // namespace margelo::nitro::video
