mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-18 13:19:27 +00:00
65 lines
1.8 KiB
C++
Generated
65 lines
1.8 KiB
C++
Generated
///
|
|
/// HybridVideoViewViewManagerFactorySpec.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 `HybridVideoViewViewManagerSpec` to properly resolve imports.
|
|
namespace margelo::nitro::video { class HybridVideoViewViewManagerSpec; }
|
|
|
|
#include <memory>
|
|
#include "HybridVideoViewViewManagerSpec.hpp"
|
|
|
|
namespace margelo::nitro::video {
|
|
|
|
using namespace margelo::nitro;
|
|
|
|
/**
|
|
* An abstract base class for `VideoViewViewManagerFactory`
|
|
* Inherit this class to create instances of `HybridVideoViewViewManagerFactorySpec` in C++.
|
|
* You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
|
|
* @example
|
|
* ```cpp
|
|
* class HybridVideoViewViewManagerFactory: public HybridVideoViewViewManagerFactorySpec {
|
|
* public:
|
|
* HybridVideoViewViewManagerFactory(...): HybridObject(TAG) { ... }
|
|
* // ...
|
|
* };
|
|
* ```
|
|
*/
|
|
class HybridVideoViewViewManagerFactorySpec: public virtual HybridObject {
|
|
public:
|
|
// Constructor
|
|
explicit HybridVideoViewViewManagerFactorySpec(): HybridObject(TAG) { }
|
|
|
|
// Destructor
|
|
~HybridVideoViewViewManagerFactorySpec() override = default;
|
|
|
|
public:
|
|
// Properties
|
|
|
|
|
|
public:
|
|
// Methods
|
|
virtual std::shared_ptr<HybridVideoViewViewManagerSpec> createViewManager(double nitroId) = 0;
|
|
|
|
protected:
|
|
// Hybrid Setup
|
|
void loadHybridMethods() override;
|
|
|
|
protected:
|
|
// Tag for logging
|
|
static constexpr auto TAG = "VideoViewViewManagerFactory";
|
|
};
|
|
|
|
} // namespace margelo::nitro::video
|