Specialized knowledge for Samsung Health / Health Connect integration in TrainIQ. Use when implementing data sync, permission flows, or data mapping from health records to domain models.
This skill ensures a robust, privacy-first integration with Health Connect for the TrainIQ app.
HealthConnectClient.getSdkStatus() before every read/write operation.SDK_UNAVAILABLE), inform the user and disable dependent features.ChangesToken to fetch only new or updated records since the last sync.WorkManagerandroidx.health.connect.client.records.* directly to DomainModels.kt. Never let Health Connect record types leak into the UI or ViewModel.TimeRangeFilter or ChangesToken.readRecords or getChanges.