BEHealthKit 1.11
A HealthKit plugin for Unity
Loading...
Searching...
No Matches
Public Attributes | Public Member Functions | List of all members
BeliefEngine.HealthKit.WorkoutSample Class Reference

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< WorkoutEventworkoutEvents
 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.
 

Constructor & Destructor Documentation

◆ WorkoutSample() [1/2]

BeliefEngine.HealthKit.WorkoutSample.WorkoutSample ( XmlNode node)
inline
Parameters
nodethe XmlNode to create this object from.

◆ WorkoutSample() [2/2]

BeliefEngine.HealthKit.WorkoutSample.WorkoutSample ( WorkoutActivityType activityType,
DateTimeOffset startDate,
DateTimeOffset endDate )
inline
Parameters
activityTypetype of the workout
startDatethe start date of the sample
endDatethe end date of the sample

Member Function Documentation

◆ ToXML()

override XElement BeliefEngine.HealthKit.WorkoutSample.ToXML ( )
inlinevirtual

Reimplemented from BeliefEngine.HealthKit.Sample.