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
Enable Interpretation Modules
Enable Cloud Sync
Complete Example
HSI Snapshot Reference
TheHSISnapshot is the immutable export format produced by the HSI Runtime:
EmotionState Reference
FocusState Reference
Focus Module
Emotion Module
Cloud Connector
Configuration Options
Error Handling
Privacy & Consent
API Reference
Synheart
Main SDK object.
Methods:
| Method | Description | Returns |
|---|---|---|
initialize() | Initialize the SDK | Unit |
enableFocus() | Enable focus module | Unit |
enableEmotion() | Enable emotion module | Unit |
enableCloud() | Enable cloud sync | Unit |
dispose() | Cleanup resources | Unit |
| Flow | Type | Description |
|---|---|---|
onHSIUpdate | Flow<HSISnapshot> | HSI snapshot updates |
onFocusUpdate | Flow<FocusState> | Focus state estimates |
onEmotionUpdate | Flow<EmotionState> | Emotion state estimates |
Resources
- Repository: synheart-core-sdk-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
Author: Israel Goytom