mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
56 lines
2.0 KiB
Swift
Generated
56 lines
2.0 KiB
Swift
Generated
///
|
|
/// HybridVideoViewViewManagerFactorySpec.swift
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
import NitroModules
|
|
|
|
/// See ``HybridVideoViewViewManagerFactorySpec``
|
|
public protocol HybridVideoViewViewManagerFactorySpec_protocol: HybridObject {
|
|
// Properties
|
|
|
|
|
|
// Methods
|
|
func createViewManager(nitroId: Double) throws -> (any HybridVideoViewViewManagerSpec)
|
|
}
|
|
|
|
public extension HybridVideoViewViewManagerFactorySpec_protocol {
|
|
/// Default implementation of ``HybridObject.toString``
|
|
func toString() -> String {
|
|
return "[HybridObject VideoViewViewManagerFactory]"
|
|
}
|
|
}
|
|
|
|
/// See ``HybridVideoViewViewManagerFactorySpec``
|
|
open class HybridVideoViewViewManagerFactorySpec_base {
|
|
private weak var cxxWrapper: HybridVideoViewViewManagerFactorySpec_cxx? = nil
|
|
public init() { }
|
|
public func getCxxWrapper() -> HybridVideoViewViewManagerFactorySpec_cxx {
|
|
#if DEBUG
|
|
guard self is any HybridVideoViewViewManagerFactorySpec else {
|
|
fatalError("`self` is not a `HybridVideoViewViewManagerFactorySpec`! Did you accidentally inherit from `HybridVideoViewViewManagerFactorySpec_base` instead of `HybridVideoViewViewManagerFactorySpec`?")
|
|
}
|
|
#endif
|
|
if let cxxWrapper = self.cxxWrapper {
|
|
return cxxWrapper
|
|
} else {
|
|
let cxxWrapper = HybridVideoViewViewManagerFactorySpec_cxx(self as! any HybridVideoViewViewManagerFactorySpec)
|
|
self.cxxWrapper = cxxWrapper
|
|
return cxxWrapper
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* A Swift base-protocol representing the VideoViewViewManagerFactory HybridObject.
|
|
* Implement this protocol to create Swift-based instances of VideoViewViewManagerFactory.
|
|
* ```swift
|
|
* class HybridVideoViewViewManagerFactory : HybridVideoViewViewManagerFactorySpec {
|
|
* // ...
|
|
* }
|
|
* ```
|
|
*/
|
|
public typealias HybridVideoViewViewManagerFactorySpec = HybridVideoViewViewManagerFactorySpec_protocol & HybridVideoViewViewManagerFactorySpec_base
|