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