feat: implement Haptika PPG and Watch V1
This commit is contained in:
Generated
+64
@@ -0,0 +1,64 @@
|
||||
///
|
||||
/// HybridHaptikaCardiacMirrorSpec.swift
|
||||
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
||||
/// https://github.com/mrousavy/nitro
|
||||
/// Copyright © Marc Rousavy @ Margelo
|
||||
///
|
||||
|
||||
import NitroModules
|
||||
|
||||
/// See ``HybridHaptikaCardiacMirrorSpec``
|
||||
public protocol HybridHaptikaCardiacMirrorSpec_protocol: HybridObject {
|
||||
// Properties
|
||||
|
||||
|
||||
// Methods
|
||||
func isSupported() throws -> Bool
|
||||
func patternInfo() throws -> NativeCardiacMirrorPatternInfo
|
||||
func start(targetBpm: Double) throws -> Void
|
||||
func pulse() throws -> Void
|
||||
func stop() throws -> Void
|
||||
func startWatchSession() throws -> Void
|
||||
func watchReachable() throws -> Bool
|
||||
func latestHeartbeat() throws -> NativeCardiacMirrorHeartbeat?
|
||||
func playRegulationProtocol(kind: String) throws -> Double
|
||||
func stopRegulationProtocol() throws -> Void
|
||||
}
|
||||
|
||||
public extension HybridHaptikaCardiacMirrorSpec_protocol {
|
||||
/// Default implementation of ``HybridObject.toString``
|
||||
func toString() -> String {
|
||||
return "[HybridObject HaptikaCardiacMirror]"
|
||||
}
|
||||
}
|
||||
|
||||
/// See ``HybridHaptikaCardiacMirrorSpec``
|
||||
open class HybridHaptikaCardiacMirrorSpec_base {
|
||||
private weak var cxxWrapper: HybridHaptikaCardiacMirrorSpec_cxx? = nil
|
||||
public init() { }
|
||||
public func getCxxWrapper() -> HybridHaptikaCardiacMirrorSpec_cxx {
|
||||
#if DEBUG
|
||||
guard self is any HybridHaptikaCardiacMirrorSpec else {
|
||||
fatalError("`self` is not a `HybridHaptikaCardiacMirrorSpec`! Did you accidentally inherit from `HybridHaptikaCardiacMirrorSpec_base` instead of `HybridHaptikaCardiacMirrorSpec`?")
|
||||
}
|
||||
#endif
|
||||
if let cxxWrapper = self.cxxWrapper {
|
||||
return cxxWrapper
|
||||
} else {
|
||||
let cxxWrapper = HybridHaptikaCardiacMirrorSpec_cxx(self as! any HybridHaptikaCardiacMirrorSpec)
|
||||
self.cxxWrapper = cxxWrapper
|
||||
return cxxWrapper
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A Swift base-protocol representing the HaptikaCardiacMirror HybridObject.
|
||||
* Implement this protocol to create Swift-based instances of HaptikaCardiacMirror.
|
||||
* ```swift
|
||||
* class HybridHaptikaCardiacMirror : HybridHaptikaCardiacMirrorSpec {
|
||||
* // ...
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
public typealias HybridHaptikaCardiacMirrorSpec = HybridHaptikaCardiacMirrorSpec_protocol & HybridHaptikaCardiacMirrorSpec_base
|
||||
Reference in New Issue
Block a user