VLDHealthKitSubscription
@interface VLDHealthKitSubscription : VLDModel
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.
-
Returns the VLDRecordType for a particular HKSampleType.
Declaration
Objective-C
+ (id)recordTypeForSampleType:(HKSampleType *)sampleType;
Parameters
sampleType
An HKSampleType to get the corresponding record type for.
-
Returns a list of HKSampleType objects that are mapped to a particular VLDRecordType value. This method is deprecated. Please use sampleTypesForSubscriptionSet.
Declaration
Objective-C
+ (id)sampleTypesForRecordType:(id)recordType;
Parameters
recordType
A value of VLDRecordType to get sample types for.
-
Returns the HKUnit used to get the quantity for a sample.
Declaration
Objective-C
+ (HKUnit *)unitForQuantityTypeIdentifier:(id)type;
Parameters
type
the type identifier for an HKSampleType.
-
Returns a string value that describes the Workout Activity.
Declaration
Objective-C
+ (id)workoutActivityForType:(id)type;
Parameters
type
the HKWorkoutActivityType to get the name for.
-
This returns an array of HKSampleTypes that are mapped to a VLDHealthKitSubscriptionSet value.
Declaration
Objective-C
+ (id)sampleTypesForSubscriptionSet:(id)subscriptionSet;
Parameters
subscriptionSet
A value of VLDHealthKitSubscriptionSet to get sample types for.