61 lines
2.1 KiB
Swift
Generated
61 lines
2.1 KiB
Swift
Generated
///
|
|
/// HybridHaptikaPPGFrameProcessorSpec.swift
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
import VisionCamera
|
|
import NitroModules
|
|
|
|
/// See ``HybridHaptikaPPGFrameProcessorSpec``
|
|
public protocol HybridHaptikaPPGFrameProcessorSpec_protocol: HybridObject {
|
|
// Properties
|
|
|
|
|
|
// Methods
|
|
func startMeasurement(configuration: NativePPGConfiguration) throws -> Void
|
|
func processFrame(frame: (any HybridFrameSpec)) throws -> PPGFrameUpdate?
|
|
func finishMeasurement() throws -> NativePPGProcessingResult
|
|
func cancelMeasurement() throws -> Void
|
|
func getThermalState() throws -> ThermalState
|
|
}
|
|
|
|
public extension HybridHaptikaPPGFrameProcessorSpec_protocol {
|
|
/// Default implementation of ``HybridObject.toString``
|
|
func toString() -> String {
|
|
return "[HybridObject HaptikaPPGFrameProcessor]"
|
|
}
|
|
}
|
|
|
|
/// See ``HybridHaptikaPPGFrameProcessorSpec``
|
|
open class HybridHaptikaPPGFrameProcessorSpec_base {
|
|
private weak var cxxWrapper: HybridHaptikaPPGFrameProcessorSpec_cxx? = nil
|
|
public init() { }
|
|
public func getCxxWrapper() -> HybridHaptikaPPGFrameProcessorSpec_cxx {
|
|
#if DEBUG
|
|
guard self is any HybridHaptikaPPGFrameProcessorSpec else {
|
|
fatalError("`self` is not a `HybridHaptikaPPGFrameProcessorSpec`! Did you accidentally inherit from `HybridHaptikaPPGFrameProcessorSpec_base` instead of `HybridHaptikaPPGFrameProcessorSpec`?")
|
|
}
|
|
#endif
|
|
if let cxxWrapper = self.cxxWrapper {
|
|
return cxxWrapper
|
|
} else {
|
|
let cxxWrapper = HybridHaptikaPPGFrameProcessorSpec_cxx(self as! any HybridHaptikaPPGFrameProcessorSpec)
|
|
self.cxxWrapper = cxxWrapper
|
|
return cxxWrapper
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* A Swift base-protocol representing the HaptikaPPGFrameProcessor HybridObject.
|
|
* Implement this protocol to create Swift-based instances of HaptikaPPGFrameProcessor.
|
|
* ```swift
|
|
* class HybridHaptikaPPGFrameProcessor : HybridHaptikaPPGFrameProcessorSpec {
|
|
* // ...
|
|
* }
|
|
* ```
|
|
*/
|
|
public typealias HybridHaptikaPPGFrameProcessorSpec = HybridHaptikaPPGFrameProcessorSpec_protocol & HybridHaptikaPPGFrameProcessorSpec_base
|