Overview
The Synheart Core Android/Kotlin SDK provides a unified API for collecting HSI-compatible data, processing human state on-device, and generating focus/emotion signals in native Android applications. Key Features:- Native Android support
- On-device HSI Runtime
- Kotlin Coroutines and Flow integration
- Real-time state updates
- Privacy-first architecture
Installation
Add to yourbuild.gradle (app level):
Configuration
AndroidManifest.xml
Add required permissions:Basic Usage
Initialize the SDK
Subscribe to HSI Updates
Activate features
TheSynheartFeature enum gates collection by feature. Activation is
one of four conditions a feature needs (consent, capability tier, an
active session — see Capability System).
Synheart.onHSIUpdate. Parse the JSON to read them.
Complete example
HSI snapshot reference
The HSI Runtime emits raw JSON strings viaSynheart.onHSIUpdate
(Flow<String>). Parse the JSON to extract fields like the affect /
engagement / activity / context axes. See the
HSI specification for the wire format.
Cloud connector
Configuration options
synheart-auth
integration — CloudConfig does not carry shared secrets or
HMAC keys. See Synheart Auth overview for
the device-identity flow.
Diagnostics & upload inspection
Use the diagnostics surface to inspect runtime state and force a flush when consent and network are eligible.Error Handling
Privacy & Consent
API Reference
Synheart
Main SDK object.
Methods:
| Method | Description | Returns |
|---|---|---|
initialize() | Initialize the SDK | Unit |
activate(feature) | Activate a feature module | Unit |
deactivate(feature) | Deactivate a feature module | Unit |
dispose() | Cleanup resources | Unit |
| Flow | Type | Description |
|---|---|---|
onHSIUpdate | Flow<String> | Raw HSI 1.3 JSON, emitted per window close |
Resources
- Repository: synheart-core-kotlin
- Maven: ai.synheart:core-sdk
- API Docs: API Reference
- Issues: GitHub Issues
Related Documentation
- HSV Specification - Understand Synheart Core’s internal state model
- Architecture - Deep dive into the system
- Capability System - Access levels and permissions