Class HKCategoryValueSleepAnalysis


  • public final class HKCategoryValueSleepAnalysis
    extends java.lang.Object
    [@enum] HKCategoryValueSleepAnalysis Set of values that may be used for HKCategorySamples with the HKCategoryTypeIdentifierSleepAnalysis type. To represent the user being both in bed and asleep, use two or more samples with overlapping times. By comparing the start and end times of these samples, it is possible to calculate a number of secondary statistics: 1) The amount of time it took for the user to fall asleep 2) The percentage of time in bed that the user actually spent sleeping, 3) The number of times the user woke while in bed 4) The total amount of time spent both in bed and asleep.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Asleep  
      static long Awake  
      static long InBed  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait