-
- All Implemented Interfaces:
-
ai.synheart.session.BiosignalProvider
public final class WearBiosignalProvider implements BiosignalProvider
Biosignal provider that wraps a
BleHrmProviderfrom synheart-wear. Bridges theSharedFlow<HeartRateSample>into the callback-based BiosignalProvider interface expected by SessionEngine.Uses
compileOnlydependency on synheart-wear — the provider parameter is cast at runtime viaas?so this class is safe to load even when synheart-wear is absent from the classpath.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisAvailableprivate final Stringname
-
Constructor Summary
Constructors Constructor Description WearBiosignalProvider(Object provider)
-
Method Summary
Modifier and Type Method Description BooleangetIsAvailable()StringgetName()UnitstartStreaming(Function1<BiosignalSample, Unit> onSample)UnitstopStreaming()-
-
Constructor Detail
-
WearBiosignalProvider
WearBiosignalProvider(Object provider)
-
-
Method Detail
-
getIsAvailable
Boolean getIsAvailable()
-
startStreaming
Unit startStreaming(Function1<BiosignalSample, Unit> onSample)
-
stopStreaming
Unit stopStreaming()
-
-
-
-