ios - Can I get Average sleep analytics from HealthKit? -


for hkquantitytype steps can use hkstatisticscollectionquery sum of steps on interval, in case day, without worrying deduplicate date since healthkit handle me.

but sleep analytics hkcategorytype , know hkstatisticscollectionquery doesn't support type. mean have query samples , dedup own?

there no equivalent of hkstatisticscollectionquery hkcategorytypes in healthkit.


Comments