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

HealthKit data types to authorize. Used to create the editor UI.

Public Attributes

string saveData = null
 serializable representation of the data types to read/write.

 
string healthShareUsageDescription = "We require access to health data for testing."
 Text to present to the user when iOS requests access to read health data.

 
string healthUpdateUsageDescription = "We update health data for testing."
 Text to present to the user when iOS requests access to write health data.
 
string clinicalUsageDescription = "We only request clinical data that we need."
 Text to present to the user when iOS requests access to write clinical health data.
 
Dictionary< string, HKNameValuePairdata
 dictionary of identifier/read+write values
 

Public Member Functions

string Save ()
 Save the authorization preferences.
 
void Load (TextAsset saveAsset)
 Load the authorization preferences from a supplied file.
 
void Load ()
 Load the authorization preferences.
 
string Transmit ()
 Create a comma-separated list of HealthKit datatypes to authorize.
 
bool AskForSharePermission ()
 Returns true if there are data types we want to read, and need to request permission to read health data. Always required.
 
bool AskForUpdatePermission ()
 Returns true if there are data types we want to write, and need to request permission to write health data.
 
bool AskForClinicalPermission ()
 Returns true if there are clinical data types we want to read, and need to request permission to read health data.
 

Static Public Member Functions

static string GetIdentifier< T > (T type)
 Convenience method to get a HKDataType as a string value.
 

Member Function Documentation

◆ GetIdentifier< T >()

static string BeliefEngine.HealthKit.HealthKitDataTypes.GetIdentifier< T > ( T type)
inlinestatic
Type Constraints
T :Enum 

◆ Load()

void BeliefEngine.HealthKit.HealthKitDataTypes.Load ( TextAsset saveAsset)
inline
Parameters
saveAssetthe save data asset