feat: implement Haptika PPG and Watch V1
This commit is contained in:
Generated
+110
@@ -0,0 +1,110 @@
|
||||
///
|
||||
/// HaptikaPPG-Swift-Cxx-Umbrella.hpp
|
||||
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
||||
/// https://github.com/mrousavy/nitro
|
||||
/// Copyright © Marc Rousavy @ Margelo
|
||||
///
|
||||
|
||||
#pragma once
|
||||
|
||||
// Forward declarations of C++ defined types
|
||||
// Forward declaration of `FingerContactState` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { enum class FingerContactState; }
|
||||
// Forward declaration of `HealthMetricType` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { enum class HealthMetricType; }
|
||||
// Forward declaration of `HybridFrameSpec` to properly resolve imports.
|
||||
namespace margelo::nitro::camera { class HybridFrameSpec; }
|
||||
// Forward declaration of `HybridHaptikaCardiacMirrorSpec` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { class HybridHaptikaCardiacMirrorSpec; }
|
||||
// Forward declaration of `HybridHaptikaHealthKitSpec` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { class HybridHaptikaHealthKitSpec; }
|
||||
// Forward declaration of `HybridHaptikaPPGFrameProcessorSpec` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { class HybridHaptikaPPGFrameProcessorSpec; }
|
||||
// Forward declaration of `NativeAcceptedBeat` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeAcceptedBeat; }
|
||||
// Forward declaration of `NativeBPMEstimate` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeBPMEstimate; }
|
||||
// Forward declaration of `NativeCardiacMirrorHeartbeat` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeCardiacMirrorHeartbeat; }
|
||||
// Forward declaration of `NativeCardiacMirrorPatternInfo` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeCardiacMirrorPatternInfo; }
|
||||
// Forward declaration of `NativeHealthKitContext` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeHealthKitContext; }
|
||||
// Forward declaration of `NativeHealthMetricSample` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeHealthMetricSample; }
|
||||
// Forward declaration of `NativeHeartbeatSeriesSummary` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeHeartbeatSeriesSummary; }
|
||||
// Forward declaration of `NativePPGConfiguration` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativePPGConfiguration; }
|
||||
// Forward declaration of `NativePPGProcessingResult` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativePPGProcessingResult; }
|
||||
// Forward declaration of `NativePRVMetrics` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativePRVMetrics; }
|
||||
// Forward declaration of `NativeSignalQualityResult` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct NativeSignalQualityResult; }
|
||||
// Forward declaration of `PPGFrameUpdate` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { struct PPGFrameUpdate; }
|
||||
// Forward declaration of `PPGSessionPurpose` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { enum class PPGSessionPurpose; }
|
||||
// Forward declaration of `ThermalState` to properly resolve imports.
|
||||
namespace margelo::nitro::haptika::ppg { enum class ThermalState; }
|
||||
|
||||
// Include C++ defined types
|
||||
#include "FingerContactState.hpp"
|
||||
#include "HealthMetricType.hpp"
|
||||
#include "HybridHaptikaCardiacMirrorSpec.hpp"
|
||||
#include "HybridHaptikaHealthKitSpec.hpp"
|
||||
#include "HybridHaptikaPPGFrameProcessorSpec.hpp"
|
||||
#include "NativeAcceptedBeat.hpp"
|
||||
#include "NativeBPMEstimate.hpp"
|
||||
#include "NativeCardiacMirrorHeartbeat.hpp"
|
||||
#include "NativeCardiacMirrorPatternInfo.hpp"
|
||||
#include "NativeHealthKitContext.hpp"
|
||||
#include "NativeHealthMetricSample.hpp"
|
||||
#include "NativeHeartbeatSeriesSummary.hpp"
|
||||
#include "NativePPGConfiguration.hpp"
|
||||
#include "NativePPGProcessingResult.hpp"
|
||||
#include "NativePRVMetrics.hpp"
|
||||
#include "NativeSignalQualityResult.hpp"
|
||||
#include "PPGFrameUpdate.hpp"
|
||||
#include "PPGSessionPurpose.hpp"
|
||||
#include "ThermalState.hpp"
|
||||
#include <NitroModules/Promise.hpp>
|
||||
#include <NitroModules/Result.hpp>
|
||||
#include <VisionCamera/HybridFrameSpec.hpp>
|
||||
#include <exception>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// C++ helpers for Swift
|
||||
#include "HaptikaPPG-Swift-Cxx-Bridge.hpp"
|
||||
|
||||
// Common C++ types used in Swift
|
||||
#include <NitroModules/ArrayBufferHolder.hpp>
|
||||
#include <NitroModules/AnyMapUtils.hpp>
|
||||
#include <NitroModules/RuntimeError.hpp>
|
||||
#include <NitroModules/DateToChronoDate.hpp>
|
||||
|
||||
// Forward declarations of Swift defined types
|
||||
// Forward declaration of `HybridFrameSpec_cxx` to properly resolve imports.
|
||||
namespace VisionCamera { class HybridFrameSpec_cxx; }
|
||||
// Forward declaration of `HybridHaptikaCardiacMirrorSpec_cxx` to properly resolve imports.
|
||||
namespace HaptikaPPG { class HybridHaptikaCardiacMirrorSpec_cxx; }
|
||||
// Forward declaration of `HybridHaptikaHealthKitSpec_cxx` to properly resolve imports.
|
||||
namespace HaptikaPPG { class HybridHaptikaHealthKitSpec_cxx; }
|
||||
// Forward declaration of `HybridHaptikaPPGFrameProcessorSpec_cxx` to properly resolve imports.
|
||||
namespace HaptikaPPG { class HybridHaptikaPPGFrameProcessorSpec_cxx; }
|
||||
|
||||
// Include Swift defined types
|
||||
#if __has_include("HaptikaPPG-Swift.h")
|
||||
// This header is generated by Xcode/Swift on every app build.
|
||||
// If it cannot be found, make sure the Swift module's name (= podspec name) is actually "HaptikaPPG".
|
||||
#include "HaptikaPPG-Swift.h"
|
||||
// Same as above, but used when building with frameworks (`use_frameworks`)
|
||||
#elif __has_include(<HaptikaPPG/HaptikaPPG-Swift.h>)
|
||||
#include <HaptikaPPG/HaptikaPPG-Swift.h>
|
||||
#else
|
||||
#error HaptikaPPG's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "HaptikaPPG", and try building the app first.
|
||||
#endif
|
||||
Reference in New Issue
Block a user