VLDHealthKitSubscription Class Reference
Inherits from | VLDModel : NSObject |
---|---|
Declared in | VLDHealthKitSubscription.h |
Overview
VLDHealthKitSubscription objects are used to specify what type of records to create from HealthKit data. They do this by containing a static mapping of VLDRecordType to HKSampleType objects.
+ recordTypeForSampleType:
Returns the VLDRecordType for a particular HKSampleType.
+ (VLDRecordType)recordTypeForSampleType:(HKSampleType *)sampleType
Parameters
sampleType |
An HKSampleType to get the corresponding record type for. |
---|
Discussion
Returns the VLDRecordType for a particular HKSampleType.
Declared In
VLDHealthKitSubscription.h
+ sampleTypesForRecordType:
Returns a list of HKSampleType objects that are mapped to a particular VLDRecordType value. This method is deprecated. Please use sampleTypesForSubscriptionSet.
+ (NSSet<__kindofHKSampleType*> *)sampleTypesForRecordType:(VLDRecordType)recordType
Parameters
recordType |
A value of VLDRecordType to get sample types for. |
---|
Discussion
Returns a list of HKSampleType objects that are mapped to a particular VLDRecordType value. This method is deprecated. Please use sampleTypesForSubscriptionSet.
Declared In
VLDHealthKitSubscription.h
+ unitForQuantityTypeIdentifier:
Returns the HKUnit used to get the quantity for a sample.
+ (HKUnit *)unitForQuantityTypeIdentifier:(NSString *)type
Parameters
type |
the type identifier for an HKSampleType. |
---|
Discussion
Returns the HKUnit used to get the quantity for a sample.
Declared In
VLDHealthKitSubscription.h
+ workoutActivityForType:
Returns a string value that describes the Workout Activity.
+ (NSString *)workoutActivityForType:(HKWorkoutActivityType)type
Parameters
type |
the HKWorkoutActivityType to get the name for. |
---|
Discussion
Returns a string value that describes the Workout Activity.
Declared In
VLDHealthKitSubscription.h
+ sampleTypesForSubscriptionSet:
This returns an array of HKSampleTypes that are mapped to a VLDHealthKitSubscriptionSet value.
+ (NSArray<__kindofHKSampleType*> *)sampleTypesForSubscriptionSet:(VLDHealthKitSubscriptionSet)subscriptionSet
Parameters
subscriptionSet |
A value of VLDHealthKitSubscriptionSet to get sample types for. |
---|
Discussion
This returns an array of HKSampleTypes that are mapped to a VLDHealthKitSubscriptionSet value.
Declared In
VLDHealthKitSubscription.h