Wrapper around HKCategorySample.
|
| | CategorySample (XmlNode node) |
| | The default constructor.
|
| |
|
override string | ToString () |
| | convert to a reasonable string representation
|
| |
| | Sample (XmlNode node) |
| | The default constructor.
|
| |
| | Sample (DateTimeOffset startDate, DateTimeOffset endDate) |
| | Manual constructor.
|
| |
| override XElement | ToXML () |
| | Internal method. Converts the sample to XML.
|
| |
| | HObject (XmlNode node) |
| | The constructor used internally when reading health data.
|
| |
◆ CategorySample()
| BeliefEngine.HealthKit.CategorySample.CategorySample |
( |
XmlNode | node | ) |
|
|
inline |
- Parameters
-
| node | the XmlNode to create this object from. |
◆ value
| int BeliefEngine.HealthKit.CategorySample.value |
This is an int, and the values depend on the sample type. It's probably worth reading the HKCategorySample documentation to understand what you're looking at. For sleep, basically a value of 0 means "in bed", and a 1 means "asleep". Other possible values are Awake (2), Core Sleep (3), Deep Sleep (4), and REM sleep (5). These will overlap, assuming a good HealthKit citizen is writing the data.