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

Wrapper around HKQuantity.

Public Attributes

string unit
 
double doubleValue
 

Public Member Functions

 Quantity (XmlNode node)
 The constructor used internally when reading health data.
 
 Quantity (double value, string unitString)
 The default constructor.
 
override string ToString ()
 convert to a reasonable string representation
 
virtual XElement ToXML (string name)
 Internal method. Converts the quantity to XML.
 

Constructor & Destructor Documentation

◆ Quantity() [1/2]

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

◆ Quantity() [2/2]

BeliefEngine.HealthKit.Quantity.Quantity ( double value,
string unitString )
inline
Parameters
unitStringthe string representation of the unit. For example, count, kg, or m/s^2. see: https://developer.apple.com/reference/healthkit/hkunit/1615733-unitfromstring
valuethe value of the quantity, as a double

Member Function Documentation

◆ ToXML()

virtual XElement BeliefEngine.HealthKit.Quantity.ToXML ( string name)
inlinevirtual
Parameters
namethe name of the node to generate.

Member Data Documentation

◆ doubleValue

double BeliefEngine.HealthKit.Quantity.doubleValue

the value of this quantity, as a double

◆ unit

string BeliefEngine.HealthKit.Quantity.unit

the unit of this quantity, as a string