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

Used to send HealthKit data back to Unity.

Public Attributes

HKDataType datatype
 the type of health data
 
HKClinicalType clinicalType
 the clinical type of health data, if applicable
 
WorkoutActivityType workoutType
 the workout type, if applicable
 
Error error = null
 if there was an error, the error, otherwise null
 

Public Member Functions

List< ClinicalRecordParseClinicalRecords ()
 parse XML containing a list of clinical records.
 
 HealthData (string xmlString)
 The default constructor.
 
string RootName ()
 The name of the root node of the XML document.
 
List< QuantitySampleParseQuantitySamples ()
 parse XML containing QuantitySamples, and return a list.
 
List< CategorySampleParseCategorySamples ()
 parse XML containing CategorySamples, and return a list.
 
double ParseTotal ()
 parse XML containing a combined total of QuantitySamples, and return a double.
 
HealthStatistics ParseStatistics ()
 parse XML containing Statistics result, and return a HealthStatistics object.
 
HealthStatisticsCollection ParseStatisticsCollection ()
 parse XML containing a Statistics Collection result, and return a HealthStatisticsCollection object.
 
List< DocumentSampleParseHealthDocuments ()
 parse XML containing a list of CDA documents.
 
bool ParseSuccess ()
 parse XML & determine if writing was a success.
 
Error ParseError ()
 if there was an error, parse & return it; otherwise null.
 
List< CorrelationSampleParseCorrelationSamples ()
 parse XML containing CorrelationSamples, and return a list.
 
List< WorkoutSampleParseWorkoutSamples ()
 parse XML containing WorkoutSamples, and return a list.
 
Characteristic ParseCharacteristic ()
 parse XML containing a Characteristic, and return it.
 
List< PedometerDataParsePedometerData ()
 parse XML containing pedometer data, and return it.
 

Constructor & Destructor Documentation

◆ HealthData()

BeliefEngine.HealthKit.HealthData.HealthData ( string xmlString)
inline
Parameters
xmlStringthe XML string to create this object from.

Member Function Documentation

◆ RootName()

string BeliefEngine.HealthKit.HealthData.RootName ( )
inline

This is used to determine what kind of HealthKit data to process as.