Package ai.synheart.session
See: Description
-
Class Summary Class Description BehaviorSnapshot A point-in-time snapshot of behavioral signals. BehaviorSdkProvider Wraps SynheartBehavior.getCurrentStats()from synheart-behavior-kotlin into the BehaviorProvider interface expected by SessionEngine.BiosignalSample A single biosignal sample from any heart-rate source. HealthConnectBiosignalProvider Biosignal provider that wraps a HealthConnectAdapterfrom synheart-wear.MockBehaviorProvider Mock behavior provider that returns stable mid-range values for testing. MockBiosignalProvider Mock biosignal provider that generates sinusoidal HR data at 1 Hz. SampleRingBuffer Thread-safe sliding window of BiosignalSample values. PermissionDenied SensorUnavailable InvalidState LowBattery OsTerminated SessionError Session error sealed class following the EmotionError pattern. SessionEvent Sealed event hierarchy emitted by SynheartSession.startSession. SessionStarted Emitted exactly once at the start of a session. SessionFrame A periodic frame containing computed metrics over the active window. SessionSummary Emitted once when the session ends, either naturally or via SynheartSession.stopSession. SessionErrorEvent Emitted instead of summary when the session terminates abnormally. BiosignalFrame Raw biosignal samples, emitted when SessionConfig.includeRawSamples is true. SessionStatus Typed status snapshot of an active session. SynheartSession Timer-driven session engine. ComputeProfile Compute profile controlling session frame emission timing. SessionConfig Session configuration. WearBiosignalProvider Biosignal provider that wraps a BleHrmProviderfrom synheart-wear. -
Interface Summary Interface Description BehaviorProvider Abstraction over any behavioral signal source (mock, synheart-behavior SDK). BiosignalProvider Abstraction over any heart-rate data source (mock, BLE HRM, HealthKit, Health Connect). -
Enum Summary Enum Description SessionMode Session mode matching the wire protocol values. SessionErrorCode Error codes matching the wire protocol values.