|
BEHealthKit 1.11
A HealthKit plugin for Unity
|
Wrapper around HKWorkoutSample.
Public Attributes | |
| double | duration |
| duration of the sample, in seconds | |
| Quantity | totalDistance |
| total distance walked/run/etc. during the workout | |
| Quantity | totalEnergyBurned |
| total energy burned during the workout | |
| WorkoutActivityType | activityType |
| type of the workout | |
| List< WorkoutEvent > | workoutEvents |
| workout events contained in this sample | |
Public Attributes inherited from BeliefEngine.HealthKit.Sample | |
| DateTimeOffset | startDate |
| DateTimeOffset | endDate |
Public Attributes inherited from BeliefEngine.HealthKit.HObject | |
| SourceRevision | source |
| XmlNode | metadata |
Public Member Functions | |
| WorkoutSample (XmlNode node) | |
| The default constructor. | |
| WorkoutSample (WorkoutActivityType activityType, DateTimeOffset startDate, DateTimeOffset endDate) | |
| Manual constructor. | |
| override XElement | ToXML () |
| Internal method. Converts the workout to XML. | |
Public Member Functions inherited from BeliefEngine.HealthKit.Sample | |
| Sample (XmlNode node) | |
| The default constructor. | |
| Sample (DateTimeOffset startDate, DateTimeOffset endDate) | |
| Manual constructor. | |
Public Member Functions inherited from BeliefEngine.HealthKit.HObject | |
| HObject (XmlNode node) | |
| The constructor used internally when reading health data. | |
|
inline |
| node | the XmlNode to create this object from. |
|
inline |
| activityType | type of the workout |
| startDate | the start date of the sample |
| endDate | the end date of the sample |
|
inlinevirtual |
Reimplemented from BeliefEngine.HealthKit.Sample.