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

Wrapper around HKStatistics.

Public Attributes

DateTimeOffset startDate
 
DateTimeOffset endDate
 
QuantityType quantityType
 
string unit
 
double sumQuantity
 
double minimumQuantity
 
double maximumQuantity
 
double averageQuantity
 
double mostRecentQuantity
 

Public Member Functions

 HealthStatistics (XmlNode node)
 The default constructor.
 
 HealthStatistics (XmlNode node, string unit)
 Construct a HealthStatistics object with an XML node and a unit string.
 

Constructor & Destructor Documentation

◆ HealthStatistics() [1/2]

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

◆ HealthStatistics() [2/2]

BeliefEngine.HealthKit.HealthStatistics.HealthStatistics ( XmlNode node,
string unit )
inline
Parameters
nodethe XmlNode to create this object from.
unitthe unit of this sample, as a string

Member Data Documentation

◆ averageQuantity

double BeliefEngine.HealthKit.HealthStatistics.averageQuantity

the average value from all the samples that match the query

◆ endDate

DateTimeOffset BeliefEngine.HealthKit.HealthStatistics.endDate

the ending date of this sample

◆ maximumQuantity

double BeliefEngine.HealthKit.HealthStatistics.maximumQuantity

the maximum value from all the samples that match the query

◆ minimumQuantity

double BeliefEngine.HealthKit.HealthStatistics.minimumQuantity

the minimum value from all the samples that match the query

◆ mostRecentQuantity

double BeliefEngine.HealthKit.HealthStatistics.mostRecentQuantity

the average value from all the samples that match the query

◆ quantityType

QuantityType BeliefEngine.HealthKit.HealthStatistics.quantityType

the aggregation style of this sample, either cumulative or discrete

◆ startDate

DateTimeOffset BeliefEngine.HealthKit.HealthStatistics.startDate

the starting date of this sample

◆ sumQuantity

double BeliefEngine.HealthKit.HealthStatistics.sumQuantity

the sum of all the samples that match the query

◆ unit

string BeliefEngine.HealthKit.HealthStatistics.unit

the unit of this quantity, as a string